Class: Gpx2hash::Gpx2hashParser
- Inherits:
-
Object
- Object
- Gpx2hash::Gpx2hashParser
- Defined in:
- lib/gpx2hash/gpx2hash_parser.rb
Instance Method Summary collapse
Instance Method Details
#readFile(file) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/gpx2hash/gpx2hash_parser.rb', line 7 def readFile file if File.exist? file gpxData = File.read file parseString gpxData else false end end |
#readString(gpxData) ⇒ Object
16 17 18 |
# File 'lib/gpx2hash/gpx2hash_parser.rb', line 16 def readString gpxData parseString gpxData end |