LogoopenSUSE Build Service > Projects
Sign Up | Log In

OpenStruct subclass that returns nested hash attributes as
http://github.com/aetherknight/recursive-open-struct

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' }.

Source Files

Filename Size Changed Actions
gem2rpm.yml 1.61 KB Download File
recursive-open-struct-1.1.0.gem 18.5 KB Download File
rubygem-recursive-open-struct.changes 411 Bytes Download File
rubygem-recursive-open-struct.spec 2.01 KB Download File

Comments for home:darix:apps (0)

Login required, please login or signup in order to comment