Class: BasicObject

Defined in:
lib/orthoses/lazy_trace_point.rb

Instance Method Summary collapse

Instance Method Details

#singleton_method_added(id) ⇒ Object



37
38
39
40
41
42
43
44
45
46
# File 'lib/orthoses/lazy_trace_point.rb', line 37

def singleton_method_added(id)
  begin
    if h = SINGLETON_METHOD_ADDED_HOOKS[id]
      if mod_name = UNBOUND_NAME_METHOD.bind(self).call
        h[mod_name]&.call(self, id)
      end
    end
  rescue TypeError
  end
end