Skip to content

Instantly share code, notes, and snippets.

@markbates
Created September 17, 2008 19:24
Show Gist options
  • Save markbates/11289 to your computer and use it in GitHub Desktop.
Save markbates/11289 to your computer and use it in GitHub Desktop.
configatron.email = 'me@example.com'
configatron.email # => 'me@example.com'
configatron.set_default(:name, 'Mark Bates')
configatron.name # => 'Mark Bates'
# If the parameter is already set, it won't be set again
configatron.set_default(:name, 'Me')
configatron.name # => 'Mark Bates'
configatron.set_default(:email, 'you@example.com')
configatron.email # => 'me@example.com'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment