Tidy
[gitmo/Mouse.git] / lib / Mouse / Meta / Method.pm
CommitLineData
8e64d0fa 1package Mouse::Meta::Method;
bc69ee88 2use Mouse::Util qw(:meta); # enables strict and warnings
53875581 3
8e64d0fa 4use overload
5 '&{}' => 'body',
6 fallback => 1,
7;
8
9sub new{
10 my($class, %args) = @_;
11
12 return bless \%args, $class;
13}
14
15sub body { $_[0]->{body} }
16sub name { $_[0]->{name} }
17sub package_name{ $_[0]->{package} }
18
612d3e1a 19sub fully_qualified_name {
20 my $self = shift;
21 return $self->package_name . '::' . $self->name;
22}
8e64d0fa 23
241;
25
26__END__
1820fffe 27
28=head1 NAME
29
30Mouse::Meta::Method - A Mouse Method metaclass
31
32=head1 SEE ALSO
33
34L<Moose::Meta::Method>
35
31c5194b 36L<Class::MOP::Method>
37
1820fffe 38=cut