Class: JCF::CLI::OutputFormatters::JSON
- Inherits:
-
Object
- Object
- JCF::CLI::OutputFormatters::JSON
- Defined in:
- lib/jcf/cli/output_formatters/json.rb
Class Method Summary collapse
Class Method Details
.format(data:) ⇒ Object
9 10 11 12 13 |
# File 'lib/jcf/cli/output_formatters/json.rb', line 9 def self.format(data:) return "{}" if data.nil? || data.empty? data.to_json end |