Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#to_openstructObject



34
35
36
37
38
# File 'lib/core_ext.rb', line 34

def to_openstruct
  mapped = {}
  each{ |key,value| mapped[key] = value.to_openstruct }
  UrbanMapping::NeighborhoodOpenStruct.new(mapped)
end