Module: Orthoses::LazyTracePoint::MethodAddedHook
- Defined in:
- lib/orthoses/lazy_trace_point.rb
Overview
for TracePoint target
Instance Method Summary collapse
Instance Method Details
#method_added(id) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/orthoses/lazy_trace_point.rb', line 21 def method_added(id) begin if h = METHOD_ADDED_HOOKS[id] if mod_name = UNBOUND_NAME_METHOD.bind(self).call h[mod_name]&.call(self, id) end end rescue TypeError => e end super end |