Class: ActiveSupport::Notifications::Fanout::Subscribers::Timed
- Defined in:
- activesupport/lib/active_support/notifications/fanout.rb
Instance Method Summary collapse
- #finish(name, id, payload) ⇒ Object
- #publish(name, *args) ⇒ Object
- #start(name, id, payload) ⇒ Object
Methods inherited from Evented
#initialize, #matches?, #subscribed_to?
Constructor Details
This class inherits a constructor from ActiveSupport::Notifications::Fanout::Subscribers::Evented
Instance Method Details
#finish(name, id, payload) ⇒ Object
119 120 121 122 123 |
# File 'activesupport/lib/active_support/notifications/fanout.rb', line 119 def finish(name, id, payload) timestack = Thread.current[:_timestack] started = timestack.pop @delegate.call(name, started, Time.now, id, payload) end |
#publish(name, *args) ⇒ Object
110 111 112 |
# File 'activesupport/lib/active_support/notifications/fanout.rb', line 110 def publish(name, *args) @delegate.call name, *args end |