Module: RSpec::LegacyFormatters

Defined in:
lib/rspec/legacy_formatters.rb,
lib/rspec/legacy_formatters/adaptor.rb,
lib/rspec/legacy_formatters/version.rb

Overview

Namespace for the rspec-legacy_formatters code.

Defined Under Namespace

Modules: Version

Class Method Summary collapse

Class Method Details

.load_formatter(formatter_class, *args) ⇒ Adaptor

Loads legacy formatters into an adaptor.

Parameters:

  • formatter_class (Class)

    a legacy formatter class

  • args (Array(IO))

    output streams for formatters

Returns:

  • (Adaptor)

    a legacy formatter adaptor with an initialized legacy formatter


49
50
51
# File 'lib/rspec/legacy_formatters.rb', line 49

def self.load_formatter(formatter_class, *args)
  Adaptor.new(formatter_class, *args)
end