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
- .new ⇒ EventSubscriber constructor
Instance Attribute Summary
- #events readonly
Instance Method Summary
Constructor Details
.new ⇒ EventSubscriber
# 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