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