LogoopenSUSE Build Service > Projects
Sign Up | Log In

OpenStruct subclass that returns nested hash attributes as

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 (show merged sources derived from linked package)

Filename Size Changed Actions

Comments for home:Ximi1970:Servers:Gitlab:10.6-stable (0)