Login
From:
Robert Mosolgo
(Uncensored)
subscribe
Breaking out of a yield with return
https://rmosolgo.github.io/ruby/2019/09/02/breaking-out-of-a-yield-with-return.html
links
backlinks
Roast topics
Find topics
Find it!
Did you know that calling return in one Ruby method could affect the flow of another method? I discovered it today while hunting a GraphQL-Ruby bugfix. You can get more reliable behavior with ensure, if it’...