Last active
          October 27, 2015 23:01 
        
      - 
      
- 
        Save bplaxco/d4e6f0d539fa52010ec9 to your computer and use it in GitHub Desktop. 
    An attempt of something like an OpenStruct in ruby
  
        
  
    
      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
    
  
  
    
  | class OpenStruct(dict): | |
| __getattr__= dict.__getitem__ | |
| __setattr__= dict.__setitem__ | |
| __delattr__= dict.__delitem__ | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment