Module: Datadog::Tracing::Contrib::ActiveSupport::Notifications::Subscriber::ClassMethods
- Defined in:
- lib/datadog/tracing/contrib/active_support/notifications/subscriber.rb
Overview
Class methods that are implemented in the inheriting class.
Instance Method Summary collapse
-
#subscribed? ⇒ Boolean
Returns whether subscriptions have been activated, via #subscribe!.
-
#subscriptions ⇒ Object
Returns a list of subscriptions created for this class.
Instance Method Details
#subscribed? ⇒ Boolean
Returns whether subscriptions have been activated, via #subscribe!
26 27 28 |
# File 'lib/datadog/tracing/contrib/active_support/notifications/subscriber.rb', line 26 def subscribed? subscribed == true end |
#subscriptions ⇒ Object
Returns a list of subscriptions created for this class.
21 22 23 |
# File 'lib/datadog/tracing/contrib/active_support/notifications/subscriber.rb', line 21 def subscriptions @subscriptions ||= Set.new end |