Module: Perfetto::Interceptor

Defined in:
lib/perfetto/interceptor.rb

Overview

To intercept method calls in other classes

Defined Under Namespace

Modules: ImplMethods, StubMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/perfetto/interceptor.rb', line 9

def self.included(base)
  if Perfetto::Configure.enable_tracing?
    base.extend ImplMethods
  else
    base.extend StubMethods
  end
end