Class: Tuxedo::Formatters::BaseFormatter
- Inherits:
-
Object
- Object
- Tuxedo::Formatters::BaseFormatter
- Defined in:
- lib/tuxedo/formatters/base_formatter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
- #format(metrics) ⇒ Object
-
#initialize(output = nil) ⇒ BaseFormatter
constructor
A new instance of BaseFormatter.
Constructor Details
#initialize(output = nil) ⇒ BaseFormatter
Returns a new instance of BaseFormatter.
8 9 10 |
# File 'lib/tuxedo/formatters/base_formatter.rb', line 8 def initialize(output=nil) @output = output || StringIO.new end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
6 7 8 |
# File 'lib/tuxedo/formatters/base_formatter.rb', line 6 def output @output end |
Instance Method Details
#format(metrics) ⇒ Object
12 13 14 |
# File 'lib/tuxedo/formatters/base_formatter.rb', line 12 def format(metrics) # NOP end |