2 ms·
It's not doing "return conditionally inside an expression". The above statement is equivalent to: if !condition return end In other words, the retu
by vidarh 4y ago
It's not doing "return conditionally inside an expression". The above statement is equivalent to:
if !condition
return
end
In other words, the return in question has no argument. The unusual (but not unique) aspect of Ruby here is that if/unless can suffix the "then" block and not just prefix it.