Class: Module

Inherits:
Object show all
Defined in:
lib/rubyrun/rubyrun_boot__.rb

Overview

RubyRun uses 2 traps to get control from the interpreter to decide if a method should be instrumented or passed

  1. When an instance method is added when a module/class is

loaded, or dynamically created

  1. When a module/static/singleton method is added when a

module/class is loaded, or dynamically created

Instance Method Summary collapse

Instance Method Details

#method_added(id, *args) ⇒ Object

module/class instance method trap



58
59
60
# File 'lib/rubyrun/rubyrun_boot__.rb', line 58

def method_added(id, *args)
  RubyRunInstrumentor__.instrument_it?('i', self, id) 
end