Class: Norikra::Client::CLIUtil::Formatter::LTSV

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

Instance Method Summary collapse

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