Skip to content

Instantly share code, notes, and snippets.

@rthbound
Created November 21, 2013 17:03
Show Gist options
  • Save rthbound/7d924d56cbb14711abb0 to your computer and use it in GitHub Desktop.
Save rthbound/7d924d56cbb14711abb0 to your computer and use it in GitHub Desktop.
self referencing hash
options = { :deep => :stuff }
options.merge!(:options => options)
options[:options][:options][:options][:options][:options]
#=> {:deep=>:stuff, :options=>{...}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment