module SignalFx::Tracing::Instrumenter::PatchingTest
Public Class Methods
instrument()
click to toggle source
# File lib/signalfx/tracing/instrumentation/patching-test.rb, line 10 def instrument ::PatchingTest::ToPatch.class_eval do alias_method :test_old, :test def test puts "patched test" end end end
test()
click to toggle source
# File lib/signalfx/tracing/instrumentation/patching-test.rb, line 14 def test puts "patched test" end