Sha256: 0d423ec6cdf3136d143642c489d89045612f444819e2e3947e1d720a8adbeb5c
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
#encoding: utf-8 #Main module CommandExec #Formatting output module Formatter #Style as json string class JSON < CommandExec::Formatter::Hash # convert the prepared output to json # # @param [Array,Symbol) fields # the fields which should be outputted # # @return [String] # the output formatted as json string def output(*fields) ::JSON.generate prepare_output(fields.flatten) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
command_exec-0.2.0 | lib/command_exec/formatter/json.rb |