NAME
Zydeco::Manual::06_MethodModifiers - Method modifiers to easily wrap or override inherited methods
SYNOPSIS
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";
}
}
}
MANUAL
TODO.
KEYWORDS
In this chapter, we looked at the following keywords:
before
after
around
NEXT STEPS
TODO.
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT AND LICENCE
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.
DISCLAIMER OF WARRANTIES
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.