Open ijpiantanida opened 9 years ago
There's also some sort of a ReplHelper class or module or something available. I've never found documentation on it, but it's there.
You mean the SugarCube::Repl
class? 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?