Skip to content

Instantly share code, notes, and snippets.

@ryanckulp
Created January 1, 2018 22:54
Show Gist options
  • Save ryanckulp/7099ce5f57617bf3e094ea6a4ea828af to your computer and use it in GitHub Desktop.
Save ryanckulp/7099ce5f57617bf3e094ea6a4ea828af to your computer and use it in GitHub Desktop.
adding key/values to a Hash in Ruby
questions = {} # => create an empty Hash/object
questions['one'] = "What's your name?"
questions['two'] = "How old are you?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment