Method: ActiveSupport::Notifications::Instrumenter#initialize

Defined in:
activesupport/lib/active_support/notifications/instrumenter.rb

#initialize(notifier) ⇒ Instrumenter

Returns a new instance of Instrumenter.



12
13
14
15
16
17
18
19
# File 'activesupport/lib/active_support/notifications/instrumenter.rb', line 12

def initialize(notifier)
  unless notifier.respond_to?(:build_handle)
    notifier = LegacyHandle::Wrapper.new(notifier)
  end

  @id       = unique_id
  @notifier = notifier
end