Method: Hash#to_openstruct

Defined in:
lib/core_ext.rb

#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