Class: Warpaint::Parser
- Inherits:
-
Object
- Object
- Warpaint::Parser
- Defined in:
- lib/warpaint/parser.rb
Instance Method Summary collapse
-
#initialize(input_file) ⇒ Parser
constructor
A new instance of Parser.
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 |