123456789_123456789_123456789_123456789_123456789_

Class: ActiveSupport::EventReporter::TestHelper::EventSubscriber

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: activesupport/lib/active_support/event_reporter/test_helper.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.newEventSubscriber

[ GitHub ]

  
# File 'activesupport/lib/active_support/event_reporter/test_helper.rb', line 7

def initialize
  @events = []
end

Instance Attribute Details

#events (readonly)

[ GitHub ]

  
# File 'activesupport/lib/active_support/event_reporter/test_helper.rb', line 5

attr_reader :events

Instance Method Details

#emit(event)

[ GitHub ]

  
# File 'activesupport/lib/active_support/event_reporter/test_helper.rb', line 11

def emit(event)
  @events << event
end