OStruct2 0.2.0 has been released.
OStruct2 is a reimplementation of Ruby’s standard ostruct.rb library.
This new OpenStruct class addresses issues the original has with
conflicting member names and cloning.
- Website: http://rubyworks.github.com/ostruct2
- Documentation: http://rubydoc.info/gems/ostruct2/frames
- Source Code: http://github.com/rubyworks/ostruct2
- Mailing List: http://groups.google.com/group/rubyworks-mailinglist
- IRC Channel: http://chat.us.freenode.net/rubyworks
This release brings the new OpenStruct to a production ready state.
Changes:
- Constructors cascade and auto/renew are now slightly different.
- Added nest/nested constructor for nests OpenStructs. (Cool!)
- Boost performace via on-demand creation of singleton methods.
- Add missing equality methods, hash method and dup/clone methods.
- Rename main class to OpenStruct2 to avoid conflicts with original.
- Require
ostruct2/ostruct
to get drop-in replacement.