Class: Tuxedo::Formatters::BaseFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/tuxedo/formatters/base_formatter.rb

Direct Known Subclasses

BaseTextFormatter

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#outputObject (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