ruby/ruby — pull request #95 by trans (2012-02-18 12:57:35+00:00)
Title: lib/ostruct.rb: fix and enhance OpenStruct

* make #new_ostruct_member a protected method
* change #marshal_dump to duplicate table to prevent table tampering
* add #to_h method to faciliate polymorphic use as hash
* add #[] and #[]= methods to facilitate dynamic gets and sets
* add #merge! method to support mass updating