Closed ChillerDragon closed 2 years ago
Do you even ruby bro!? Here read this article https://medium.com/swlh/returning-from-a-ruby-proc-beware-of-where-you-land-a29add7ddd9d
tl;dr
return
in blocks returns in the scope where the block is created not inside of the block.
so use next
instead