Class: Hone::Formatters::Base
- Inherits:
-
Object
- Object
- Hone::Formatters::Base
- Includes:
- Filterable
- Defined in:
- lib/hone/formatters/base.rb
Constant Summary
Constants included from Filterable
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(findings, options = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from Filterable
#filter_cold, #format_percent, #priority_label
Constructor Details
#initialize(findings, options = {}) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 |
# File 'lib/hone/formatters/base.rb', line 8 def initialize(findings, = {}) @findings = findings @options = @show_cold = .fetch(:show_cold, false) end |
Instance Method Details
#format ⇒ Object
14 15 16 |
# File 'lib/hone/formatters/base.rb', line 14 def format raise NotImplementedError, "Subclasses must implement #format" end |