class Hash

Public Instance Methods

to_openstruct() click to toggle source
# File lib/cuke_fig.rb, line 17
def to_openstruct
  mapped = {}
  each{ |key,value| mapped[key] = value.to_openstruct }
  OpenStruct.new(mapped)
end