Created
April 19, 2013 13:29
-
-
Save DeltaWhy/5420358 to your computer and use it in GitHub Desktop.
Fun with Ruby hashes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.3p362 :001 > h = {} | |
=> {} | |
1.9.3p362 :002 > h[:h] = h | |
=> {:h=>{...}} | |
1.9.3p362 :003 > h | |
=> {:h=>{...}} | |
1.9.3p362 :004 > h[:h] | |
=> {:h=>{...}} | |
1.9.3p362 :005 > h[:h][:h] | |
=> {:h=>{...}} | |
1.9.3p362 :006 > h[:h][:h][:h] | |
=> {:h=>{...}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment