Module: JCF::CLI::OutputFormatters
- Defined in:
- lib/jcf/cli/output_formatters.rb,
lib/jcf/cli/output_formatters/csv.rb,
lib/jcf/cli/output_formatters/json.rb,
lib/jcf/cli/output_formatters/text.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.formatter(name) ⇒ Object
14 15 16 |
# File 'lib/jcf/cli/output_formatters.rb', line 14 def self.formatter(name) formatters[name] end |
.formatters ⇒ Object
6 7 8 |
# File 'lib/jcf/cli/output_formatters.rb', line 6 def self.formatters @formatters ||= {} end |
.register_formatter(name, formatter) ⇒ Object
10 11 12 |
# File 'lib/jcf/cli/output_formatters.rb', line 10 def self.register_formatter(name, formatter) formatters[name] = formatter end |