Module: DevSuite::MethodTracer

Defined in:
lib/dev_suite/method_tracer.rb,
lib/dev_suite/method_tracer/config.rb,
lib/dev_suite/method_tracer/logger.rb,
lib/dev_suite/method_tracer/tracer.rb,
lib/dev_suite/method_tracer/helpers.rb,
lib/dev_suite/method_tracer/config/config.rb,
lib/dev_suite/method_tracer/method_tracer.rb,
lib/dev_suite/method_tracer/config/configuration.rb

Defined Under Namespace

Modules: Config, Helpers, Logger Classes: Tracer

Class Method Summary collapse

Class Method Details

.trace(options = {}, &block) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/dev_suite/method_tracer/method_tracer.rb', line 11

def trace(options = {}, &block)
  # Merge global configuration with options provided in the call
  settings = Config.configuration.settings.merge(options)

  # Use the merged settings to initialize the tracer
  Tracer.new(**settings).trace(&block)
end