Skip to content

Instantly share code, notes, and snippets.

@zachaysan
Created January 20, 2014 20:31
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 zachaysan/8528535 to your computer and use it in GitHub Desktop.
Save zachaysan/8528535 to your computer and use it in GitHub Desktop.
setting = Hash.new("Some default string")
setting[0] = "some string"
setting[1] = "some other string"
postLoginAction = 0
puts setting[postLoginAction]
postLoginAction = 1
puts setting[postLoginAction]
postLoginAction = 5
puts setting[postLoginAction]
# OUTPUT:
# some string
# some other string
# Some default string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment