4 ms·
note Because solution is a Proc, you cannot prematurely return out of it and as a result, must put an implicit return on the last line of the solution block.
by Groxx 15y ago
note Because solution is a Proc, you cannot prematurely return out of it
and as a result, must put an implicit return on the last line of the solution block.
Maybe not return, but you can `next`: `next true if repo.valid?` works fine within Procs.
- Gazler 15y agoThanks, I'll check out into this solution.