Sha256: dd2606ed42df1c72990afa83fe75ecad9f884f0965a370c4e595bf36a51ab178
Contents?: true
Size: 205 Bytes
Versions: 1
Compression:
Stored size: 205 Bytes
Contents
require "json" class CliFormat::Presenter class Json < Base def text json_data = { header: @header, data: @rows } JSON.pretty_generate(json_data) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cli-format-0.1.0 | lib/cli_format/presenter/json.rb |