阅读背景:

在Perl / Moose中,如何将修改器应用于所有子类中的方法?

来源:互联网 

I have a Moose class that is intended to be subclassed, and every subclass has to implement an "execute" method. However, I would like to put apply a method modifier to the execute method in my class, so that it applies to the execute method in all subclasses. But method modifiers are not preserved when a method is overriden. Is there any way to ensure that all subclasses of my class will have my method modifier applied to their execute methods?I have a Moose class that is intended to be sub




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: