Method: RSpec::Core::Formatters.register

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

.register(formatter_class, *notifications) ⇒ void

Register the formatter class

Parameters:

  • formatter_class (Class)

    formatter class to register

  • notifications (Array<Symbol>)

    one or more notifications to be registered to the specified formatter

See Also:

[View source]

86
87
88
# File 'lib/rspec/core/formatters.rb', line 86

def self.register(formatter_class, *notifications)
  Loader.formatters[formatter_class] = notifications
end