polyphony
polyphony copied to clipboard
Polyphony doesn't work with debug gem
/home/sharon/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/debug-1.8.0/lib/debug/session.rb:2544:in `trap': super: no superclass method `trap' for Polyphony:Module (NoMethodError)
Did you mean? tap
from examples/core/debug.rb:5:in `require'
from examples/core/debug.rb:5:in `<main>'
The debug gem prepends a TrapInterceptor
module that defines a #trap
method into Object
, Kernel
, and Signal
. We might want to use the same technique to override methods like #trap
:
module ::Kernel
prepend ForkInterceptor
prepend TrapInterceptor
end