Skip to content

Instantly share code, notes, and snippets.

@hoelzro
Created July 9, 2012 13:45
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 hoelzro/3076666 to your computer and use it in GitHub Desktop.
Save hoelzro/3076666 to your computer and use it in GitHub Desktop.
class Test
def to_a
puts 'to_a'
[1, 2]
end
def to_ary
puts 'to_ary'
[1, 2]
end
end
c = Test.new
puts 'a, b = c'
a, b = c
puts 'a, b = *c'
a, b = *c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment