Skip to content

Instantly share code, notes, and snippets.

@youroff
Created February 10, 2016 07:07
Show Gist options
  • Save youroff/d63445b64c7bea3a6de6 to your computer and use it in GitHub Desktop.
Save youroff/d63445b64c7bea3a6de6 to your computer and use it in GitHub Desktop.
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