Method: OpenStreetMap::Parser#parse
- Defined in:
- lib/open_street_map/parser.rb
#parse ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/open_street_map/parser.rb', line 8 def parse return nil if body.nil? || body.empty? if supports_format? self.send(format) # This is a hack, cause the xml format would not be recognized ways, but for nodes and relations else body end end |