Skip to content

Instantly share code, notes, and snippets.

@bdotdub
Created November 12, 2009 20:22
Show Gist options
  • Save bdotdub/233243 to your computer and use it in GitHub Desktop.
Save bdotdub/233243 to your computer and use it in GitHub Desktop.
# this is really silly
irb(main):035:0> hash = {:x => 'y'}
=> {:x=>"y"}
irb(main):036:0> hash()
=> 113830
irb(main):037:0> hash { puts 'blah' }
=> 113830
irb(main):038:0> hash{:x}
=> 113830
irb(main):039:0> object_id
=> 113830
irb(main):040:0> self.object_id
=> 113830
irb(main):041:0> self
=> main
irb(main):042:0> self.class
=> Object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment