Class: Hash
Instance Method Summary collapse
Instance Method Details
#to_openstruct ⇒ Object
16 17 18 19 20 |
# File 'lib/configutron/core_ext.rb', line 16 def to_openstruct mapped = {} each{ |key,value| mapped[key] = value.to_openstruct } OpenStruct.new(mapped) end |