Re:Ruby on Rails in a week
by nlh on Friday October 30, 2020 @11:36AM
(#24943331)
Interesting! I recall reading about this before but I’d forgotten it.
And I suppose one of the things that trips people up a lot about ruby is that the implicit return gives a different result — eg your example but without the “return true if” part DOES return an array, like JavaScript.
And I suppose one of the things that trips people up a lot about ruby is that the implicit return gives a different result — eg your example but without the “return true if” part DOES return an array, like JavaScript.