Subject: | y/N answers should be remembered on a per-class basis |
If My::Module inherits from Acme::WalkMethods, and $foo and $bar are
both instances of My::Module, then calling $foo->xyzzy(1) and electing
to create the xyzzy method, should automatically make the method
available in $bar.
But if $baz is an in instance of Other::Module, also inheriting from
Acme::WalkMethods, then $baz->xyzzy(2) should prompt again.
Inheritance should be respected. If My::Module has a xyzzy method, and
Yet::Another::Module inherits from My::Module, then xyzzy should work
on instances of Yet::Another::Module.
This should be fairly easy to implement. On a "y" answer, just create a
new sub in the invocant's package namespace.
Related: the y/N prompt should mention which class the method will be
created in.
I'm happy to supply a patch should you think it worthwhile to include
these features.