Class: Warpaint::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/warpaint/parser.rb

Direct Known Subclasses

GPX, NetXML

Instance Method Summary collapse

Constructor Details

#initialize(input_file) ⇒ Parser

Returns a new instance of Parser.



3
4
5
6
# File 'lib/warpaint/parser.rb', line 3

def initialize(input_file)
  raise "File not found: #{input_file}" unless File.exists? input_file
  @input_file = input_file
end