method
instrument
v6.0.0 -
Show latest stable
- Class:
ActiveSupport::Notifications
instrument(name, payload = {})public
No documentation available.
# File activesupport/lib/active_support/notifications.rb, line 178
def instrument(name, payload = {})
if notifier.listening?(name)
instrumenter.instrument(name, payload) { yield payload if block_given? }
else
yield payload if block_given?
end
end