Skip to content

Instantly share code, notes, and snippets.

@arn-e
Last active December 19, 2015 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arn-e/6032128 to your computer and use it in GitHub Desktop.
Save arn-e/6032128 to your computer and use it in GitHub Desktop.
def test
my_array = [1,2,3,4]
my_array.each do |i|
return i
end
end
puts test
# 1
my_second_array = [5,6,7]
my_second_array.each do |j|
return j
end
# test.rb:13: unexpected return (LocalJumpError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment