Skip to content

Instantly share code, notes, and snippets.

@tenderlove
Created January 12, 2012 22:42
Show Gist options
  • Save tenderlove/1603611 to your computer and use it in GitHub Desktop.
Save tenderlove/1603611 to your computer and use it in GitHub Desktop.
irb(main):001:0> class Foo; def to_ary; ['<3', :hi]; end end
=> nil
irb(main):002:0> a ,= Foo.new
=> #<Foo:0x007fbd8a08c4e8>
irb(main):003:0> a
=> "<3"
irb(main):004:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment