requires 'Sub::Exporter';
requires 'Scalar::Util';
requires 'MRO::Compat';
+requires 'Class::Method::Modifiers' => '1.00';
build_requires 'Test::More';
build_requires 'Test::Exception';
use Sub::Exporter;
use Carp 'confess';
use Scalar::Util 'blessed';
+use Class::Method::Modifiers ();
use Mouse::Meta::Attribute;
use Mouse::Meta::Class;
blessed => sub {
return \&blessed;
},
+
+ before => sub {
+ return \&Class::Method::Modifiers::before;
+ },
+
+ after => sub {
+ return \&Class::Method::Modifiers::after;
+ },
+
+ around => sub {
+ return \&Class::Method::Modifiers::around;
+ },
);
my $exporter = Sub::Exporter::build_exporter({
has 'z' => (is => 'rw', isa => 'Int');
- # not implemented yet :)
- #after 'clear' => sub {
- # my $self = shift;
- # $self->z(0);
- #};
+ after 'clear' => sub {
+ my $self = shift;
+ $self->z(0);
+ };
=head1 DESCRIPTION