Skip to content

Instantly share code, notes, and snippets.



Created Oct 29, 2008
What would you like to do?
>> data ={:so => 'what', :what => 'ever'})
=> #<OpenStruct so="what", what="ever">
=> "what"
>> class << data; alias_method :old_so, :so; def so() old_so.upcase; end end
=> nil
=> "WHAT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.