Class: Hash

Inherits:
Object show all
Defined in:
lib/cuke_fig.rb

Instance Method Summary collapse

Instance Method Details

#to_openstructObject



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