X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod.pm;h=a018662e933b4566be3c8dac6300fe5a2553c079;hp=a64dce819739f643aa6c55bcc0e2124220db6c14;hb=31c5194bc6a176cec4de515163d27f174eba5c9b;hpb=bc71de540020f1b2b75bafd69e2021c103e1c4e3 diff --git a/lib/Mouse/Meta/Method.pm b/lib/Mouse/Meta/Method.pm index a64dce8..a018662 100755 --- a/lib/Mouse/Meta/Method.pm +++ b/lib/Mouse/Meta/Method.pm @@ -2,6 +2,8 @@ package Mouse::Meta::Method; use strict; use warnings; +use Mouse::Util qw(:meta); + use overload '&{}' => 'body', fallback => 1, @@ -13,11 +15,27 @@ sub new{ return bless \%args, $class; } -sub body { $_[0]->{body} } -sub name { $_[0]->{name} } -sub package{ $_[0]->{name} } +sub body { $_[0]->{body} } +sub name { $_[0]->{name} } +sub package_name{ $_[0]->{package} } +sub fully_qualified_name { + my $self = shift; + return $self->package_name . '::' . $self->name; +} 1; __END__ + +=head1 NAME + +Mouse::Meta::Method - A Mouse Method metaclass + +=head1 SEE ALSO + +L + +L + +=cut