Class: Parser::ValidateGpx
- Defined in:
- lib/simple_trail/parser/validate_gpx.rb
Instance Method Summary collapse
-
#initialize(filename) ⇒ ValidateGpx
constructor
A new instance of ValidateGpx.
- #validate_basics? ⇒ Boolean
Constructor Details
#initialize(filename) ⇒ ValidateGpx
Returns a new instance of ValidateGpx.
5 6 7 |
# File 'lib/simple_trail/parser/validate_gpx.rb', line 5 def initialize(filename) @filename = filename end |
Instance Method Details
#validate_basics? ⇒ Boolean
9 10 11 12 13 14 |
# File 'lib/simple_trail/parser/validate_gpx.rb', line 9 def validate_basics? file = File.new(@filename) @parsed_file = XmlHasher.parse(file)[:gpx] !@parsed_file.nil? end |