Created
February 10, 2016 07:07
-
-
Save youroff/d63445b64c7bea3a6de6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def cool_method | |
found = false | |
[1,2,3,4].each (item) -> | |
if item == 2 | |
found = true | |
found | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment