Created
          September 17, 2008 19:24 
        
      - 
      
 - 
        
Save markbates/11289 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or 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
    
  
  
    
  | 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