You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means that you can't use method_missing on your app for example to proxy the size method to another object, since now Kernel responds to it (in an unintended way).
Why not just open the TopLevel class and add the repl helpers there instead?
The text was updated successfully, but these errors were encountered:
You mean the SugarCube::Replclass? That's what the Kernel methods end up calling.
It used to be a module SugarCube::Adjust, so I would simply include it myself on the REPL instead of requiring the package. But now that it's a class (don't know why since it doesn't have any instance method) I can't do it anymore.
Repl works by extending the
Kernel
module.This means that you can't use
method_missing
on your app for example to proxy thesize
method to another object, since nowKernel
responds to it (in an unintended way).Why not just open the
TopLevel
class and add the repl helpers there instead?The text was updated successfully, but these errors were encountered: