Module: Docs::Instrumentable::Methods

Defined in:
lib/docs/core/instrumentable.rb

Instance Method Summary collapse

Instance Method Details

#instrument(*args, &block) ⇒ Object


14
15
16
# File 'lib/docs/core/instrumentable.rb', line 14

def instrument(*args, &block)
  ActiveSupport::Notifications.instrument(*args, &block)
end

#subscribe(*args, &block) ⇒ Object


18
19
20
# File 'lib/docs/core/instrumentable.rb', line 18

def subscribe(*args, &block)
  ActiveSupport::Notifications.subscribe(*args, &block)
end