Sha256: 8b6365d24c35774eb685d8fc818ae7b6c8c22d907ac6c808b15086ca19b7df43
Contents?: true
Size: 645 Bytes
Versions: 10
Compression:
Stored size: 645 Bytes
Contents
require 'sqreen/ecosystem/module_api' module Sqreen module Ecosystem module ModuleApi module Instrumentation def self.included(mod) mod.send :include, ModuleApi unless mod.ancestors.include?(ModuleApi) end private # Just forwards the call to the instrumentation service # @param [String] method # @param [Hash{Symbol=>Proc}] advice keys are one of: :before, :after, # :raised, def instrument(method, advice) DispatchTable.instrument.call(self.class.module_name, method, advice) end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems