Class: Norikra::Client::CLIUtil::Parser::LTSV
- Inherits:
-
Object
- Object
- Norikra::Client::CLIUtil::Parser::LTSV
- Defined in:
- lib/norikra/client/cli/parser.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ LTSV
constructor
A new instance of LTSV.
- #parse(line) ⇒ Object
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 |