RubyGems.org

RecursiveOpenStruct is a subclass of OpenStruct. It differs from OpenStruct in that it allows nested hashes to be treated in a recursive fashion. For example: ros = RecursiveOpenStruct.new({ :a => { :b => 'c' } }) ros.a.b # 'c' Also, nested hashes can still be accessed as hashes: ros.a_as_a_hash # { :b => 'c' }

installgem install recursive-open-struct
Authors

William (B.J.) Snow Orvis

67,665 total downloads 11,207 for this version
Owners

3a05cb275986b365d13128126440c3b434c9b2871a5c18c38cc226759e17c538

Licenses

MIT

Gemfile
gem 'recursive-open-struct', '~> 0.5.0'
Versions
  1. 0.5.0 June 14, 2014 (10 KB)
  2. 0.4.5 October 24, 2013 (9 KB)
  3. 0.4.4 August 28, 2013 (9 KB)
  4. 0.4.3 May 31, 2013 (9 KB)
  5. 0.4.2 May 30, 2013 (8.5 KB)
Show all versions (11 total)
Ruby Dependency
  1. >= 0