Sha256: b286d51feac1196d407dfb662f8e4c0654bdf77c79b97e4881133474c2ced636

Contents?: true

Size: 400 Bytes

Versions: 4

Compression:

Stored size: 400 Bytes

Contents

module Datadog
  # Defines some useful patching methods for integrations
  module Patcher
    module_function

    def without_warnings
      # This is typically used when monkey patching functions such as
      # intialize, which Ruby advices you not to. Use cautiously.
      v = $VERBOSE
      $VERBOSE = nil
      begin
        yield
      ensure
        $VERBOSE = v
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ddtrace-0.12.0.beta2 lib/ddtrace/patcher.rb
ddtrace-0.12.0.beta1 lib/ddtrace/patcher.rb
ddtrace-0.11.2 lib/ddtrace/patcher.rb
ddtrace-0.11.1 lib/ddtrace/patcher.rb