Module: CC::Analyzer::Formatters
- Defined in:
- lib/cc/analyzer/formatters.rb,
lib/cc/analyzer/formatters/spinner.rb,
lib/cc/analyzer/formatters/formatter.rb,
lib/cc/analyzer/formatters/html_formatter.rb,
lib/cc/analyzer/formatters/json_formatter.rb,
lib/cc/analyzer/formatters/plain_text_formatter.rb
Defined Under Namespace
Classes: Formatter, HTMLFormatter, JSONFormatter, PlainTextFormatter, Spinner
Constant Summary collapse
- FORMATTERS =
{ html: HTMLFormatter, json: JSONFormatter, text: PlainTextFormatter, }.freeze
Class Method Summary collapse
Class Method Details
.resolve(name) ⇒ Object
16 17 18 |
# File 'lib/cc/analyzer/formatters.rb', line 16 def self.resolve(name) FORMATTERS[name.to_sym] or raise Formatter::InvalidFormatterError, "'#{name}' is not a valid formatter. Valid options are: #{FORMATTERS.keys.join(", ")}" end |