RubyGems Navigation menu

hash_struct 0.3

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.

Gemfile
          gem 'hash_struct', '~> 0.3'
  
  
  
  
  
  
  

install
          gem install hash_struct
  
  
  
  
  
  
  

Authors:

  • Jakub Šťastný aka Botanicus

Owners:

Total downloads 4,876

For this version 1,840

Required Ruby Version: None

Links:

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)