Skip to content

Instantly share code, notes, and snippets.

@unreal
Created August 6, 2013 16:55
Show Gist options
  • Save unreal/6166354 to your computer and use it in GitHub Desktop.
Save unreal/6166354 to your computer and use it in GitHub Desktop.
irb(main):001:0> a = {"foo" => "bar" }
=> {"foo"=>"bar"}
irb(main):002:0> b = {"foo" => "bar" }
=> {"foo"=>"bar"}
irb(main):003:0> a.keys.first.object_id
=> 23812032
irb(main):004:0> b.keys.first.object_id
=> 23802852
irb(main):005:0> a = { foo: "bar" }
=> {:foo=>"bar"}
irb(main):006:0> b = { foo: "bar" }
=> {:foo=>"bar"}
irb(main):007:0> a.keys.first.object_id
=> 357128
irb(main):008:0> b.keys.first.object_id
=> 357128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment