class RSpec::Core::Bisect::Notifier
Wraps a ‘formatter` providing a simple means to notify it in place of an `RSpec::Core::Reporter`, without involving configuration in any way. @private
Public Class Methods
Source
# File lib/rspec/core/bisect/utilities.rb, line 20 def initialize(formatter) @formatter = formatter end
Public Instance Methods
Source
# File lib/rspec/core/bisect/utilities.rb, line 24 def publish(event, *args) return unless @formatter.respond_to?(event) notification = Notifications::CustomNotification.for(*args) @formatter.__send__(event, notification) end