use strict;
use warnings;
-our $VERSION = '0.01';
+use Carp 'confess';
+
+our $VERSION = '0.02';
our $AUTHORITY = 'cpan:STEVAN';
use base 'Moose::Meta::Method';
-use Sub::Name;
-
-use Carp qw(confess);
-
sub new {
my ( $class, %args ) = @_;
# subname "${_super_package}::${name}", $method;
# FIXME store additional attrs
- $class->wrap($body);
+ $class->wrap(
+ $body,
+ package_name => $args{class}->name,
+ name => $name
+ );
}
1;
=head1 AUTHOR
-Stevan Little E<lt>stevan@iinteractive.comE<gt>
+Yuval Kogman E<lt>nothingmuch@cpan.orgE<gt>
=head1 COPYRIGHT AND LICENSE