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=1959f9da465b5504d69cfd33e13f9ef4c27c50c6;hp=a64dce819739f643aa6c55bcc0e2124220db6c14;hb=9b9e4b6566015d6d6e2aa6c745644174efa74623;hpb=bc71de540020f1b2b75bafd69e2021c103e1c4e3 diff --git a/lib/Mouse/Meta/Method.pm b/lib/Mouse/Meta/Method.pm index a64dce8..1959f9d 100755 --- a/lib/Mouse/Meta/Method.pm +++ b/lib/Mouse/Meta/Method.pm @@ -1,6 +1,5 @@ package Mouse::Meta::Method; -use strict; -use warnings; +use Mouse::Util qw(:meta); # enables strict and warnings use overload '&{}' => 'body', @@ -13,11 +12,31 @@ 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 VERSION + +This document describes Mouse version 0.39 + +=head1 SEE ALSO + +L + +L + +=cut