instance method emitting?

Ruby on Rails edge

Since edge

Signature

emitting?(name)

Whether any event reporter subscriber would currently consume an event with the given name. Handlers can use this to skip building payloads for events that would go nowhere.

Parameters

name req
Source
# File activesupport/lib/active_support/structured_event_subscriber.rb, line 73
    def emitting?(name)
      ActiveSupport.event_reporter.emitting?(name)
    end

Defined in activesupport/lib/active_support/structured_event_subscriber.rb line 73 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::StructuredEventSubscriber

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close