Class: IRealB::Parser::Runner

Inherits:
Thor
  • Object
show all
Defined in:
lib/irealb/parser/runner.rb

Instance Method Summary collapse

Instance Method Details

#json(path) ⇒ Object



8
9
10
# File 'lib/irealb/parser/runner.rb', line 8

def json(path)
  puts JSON.pretty_generate(IRealB::Parser.new(File.read(path)).parse.as_json)
end