Class: Parser::CLI
- Inherits:
-
Thor
- Object
- Thor
- Parser::CLI
- Defined in:
- lib/parser/cli.rb
Instance Method Summary collapse
Instance Method Details
#parse(file) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/parser/cli.rb', line 7 def parse(file) if [:config] && File.exists?([:config]) Parser.configuration.load!([:config]) end Sheet.new(file).each_event do |event| puts Parser::Reporter.report(event) end end |