Method: Datadog::Shim#override_method!

Defined in:
lib/ddtrace/augmentation/shim.rb

#override_method!(method_name, &block) ⇒ Object



67
68
69
70
71
72
73
74
75
# File 'lib/ddtrace/augmentation/shim.rb', line 67

def override_method!(method_name, &block)
  return unless block_given?

  without_warnings do
    @definition_method.call(method_name, &block).tap do
      wrapped_methods.add(method_name)
    end
  end
end