Skip to content

Instantly share code, notes, and snippets.

Created July 9, 2016 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/127e39a8f7c83d91e40b472575d88138 to your computer and use it in GitHub Desktop.
Save anonymous/127e39a8f7c83d91e40b472575d88138 to your computer and use it in GitHub Desktop.
hash.rb
hash = {}
hash[:media_id] = 123
hash[:alt_text] = {}
hash[:alt_text][:text] = "foo"
# {:media_id=>123, :alt_text=>{:text=>"foo"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment