1# frozen_string_literal: true 2 3module Graphql 4 class FakeTracer 5 def initialize(trace_callback) 6 @trace_callback = trace_callback 7 end 8 9 def trace(*args) 10 @trace_callback.call(*args) 11 12 yield 13 end 14 end 15end 16
1# frozen_string_literal: true 2 3module Graphql 4 class FakeTracer 5 def initialize(trace_callback) 6 @trace_callback = trace_callback 7 end 8 9 def trace(*args) 10 @trace_callback.call(*args) 11 12 yield 13 end 14 end 15end 16