Class: Norikra::Client::CLIUtil::Formatter::LTSV
- Inherits:
-
Object
- Object
- Norikra::Client::CLIUtil::Formatter::LTSV
- Defined in:
- lib/norikra/client/cli/formatter.rb
Instance Method Summary collapse
- #format(obj) ⇒ Object
-
#initialize(*args) ⇒ LTSV
constructor
A new instance of LTSV.
Constructor Details
#initialize(*args) ⇒ LTSV
Returns a new instance of LTSV.
27 28 29 |
# File 'lib/norikra/client/cli/formatter.rb', line 27 def initialize(*args) require 'ltsv' end |
Instance Method Details
#format(obj) ⇒ Object
30 31 32 |
# File 'lib/norikra/client/cli/formatter.rb', line 30 def format(obj) ::LTSV.dump(obj) end |