Method: RSpec::Core::Formatters::BaseFormatter#initialize

Defined in:
lib/rspec/core/formatters/base_formatter.rb

#initialize(output) ⇒ BaseFormatter

Returns a new instance of BaseFormatter.

Parameters:

  • output (IO)

    the formatter output

See Also:

[View source]

23
24
25
26
# File 'lib/rspec/core/formatters/base_formatter.rb', line 23

def initialize(output)
  @output = output || StringIO.new
  @example_group = nil
end