Created
January 1, 2018 22:54
-
-
Save ryanckulp/7099ce5f57617bf3e094ea6a4ea828af to your computer and use it in GitHub Desktop.
adding key/values to a Hash in Ruby
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
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