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

Instance Method Details

#subscribed?Boolean

Returns whether subscriptions have been activated, via #subscribe!

Returns:

  • (Boolean)


26
27
28
# File 'lib/datadog/tracing/contrib/active_support/notifications/subscriber.rb', line 26

def subscribed?
  subscribed == true
end

#subscriptionsObject

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