Zydeco::Manual::06_MethodModifiers - Method modifiers to easily wrap or override inherited methods
package MyApp { use Zydeco; class Event { has date; method occur () { ...; } } class Wedding extends Event { before occur { say "Speak now or forever hold your peace"; } after occur { say "You may kiss the bride"; } } }
TODO.
In this chapter, we looked at the following keywords:
before
after
around
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2020 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install Zydeco, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Zydeco
CPAN shell
perl -MCPAN -e shell install Zydeco
For more information on module installation, please visit the detailed CPAN module installation guide.