method
instrument
v5.1.7 -
Show latest stable
- Class:
ActiveSupport::Notifications
instrument(name, payload = {})public
No documentation available.
# File activesupport/lib/active_support/notifications.rb, line 164
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