Module: Charta::EwktSerializer
- Defined in:
- lib/charta/ewkt_serializer.rb
Class Method Summary collapse
Class Method Details
.object_to_ewkt(hash) ⇒ Object
5 6 7 8 |
# File 'lib/charta/ewkt_serializer.rb', line 5 def object_to_ewkt(hash) type = hash[:type] || hash['type'] send("#{type.gsub(/(.)([A-Z])/, '\1_\2').downcase}_to_ewkt", hash) end |