Class: Parser::CLI

Inherits:
Thor
  • Object
show all
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 options[:config] && File.exists?(options[:config])
    Parser.configuration.load!(options[:config])
  end

  Sheet.new(file).each_event do |event|
    puts Parser::Reporter.report(event)
  end
end