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 over 1 year ago Download File
recursive-open-struct-1.1.0.gem 18.5 KB 8 months ago Download File
rubygem-recursive-open-struct.changes 411 Bytes 3 months ago Download File
rubygem-recursive-open-struct.spec 2.01 KB 5 months ago Download File

Comments for home:darix:apps (0)

Login required, please login or signup in order to comment