Class: Norikra::Client::CLIUtil::Parser::LTSV

Inherits:
Object
  • Object
show all
Defined in:
lib/norikra/client/cli/parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ LTSV

Returns a new instance of LTSV.



27
28
29
# File 'lib/norikra/client/cli/parser.rb', line 27

def initialize(*args)
  require 'ltsv'
end

Instance Method Details

#parse(line) ⇒ Object



30
31
32
# File 'lib/norikra/client/cli/parser.rb', line 30

def parse(line)
  ::LTSV.parse_line(line.chop, {:symbolize_keys => false})
end