RubyGems.org

HashStruct is similar to Struct from Ruby standard library, the difference is that HashStruct.generate creates a class which takes a hash with attributes rather than just positional arguments as Struct.new does.

installgem install hash_struct
Authors

Jakub Šťastný aka Botanicus

4,646 total downloads 1,746 for this version
Owners

6fd5b06afa330ac57065bd83844719c3

Gemfile
gem 'hash_struct', '~> 0.3'
Versions
  1. 0.3 November 28, 2009 (4.5 KB)
  2. 0.2 November 28, 2009 (4.5 KB)
  3. 0.1 November 28, 2009 (4 KB)