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