Commit | Line | Data |
952b939d |
1 | package Moose::Meta::Attribute::Native::MethodProvider::Code; |
cdf3cae6 |
2 | use Moose::Role; |
3 | |
a6f9a6cd |
4 | our $VERSION = '0.93_02'; |
cdf3cae6 |
5 | $VERSION = eval $VERSION; |
6 | our $AUTHORITY = 'cpan:STEVAN'; |
7 | |
8 | sub execute : method { |
9 | my ( $attr, $reader, $writer ) = @_; |
63723115 |
10 | return sub { my ($self, @args) = @_; $reader->($self)->(@args) }; |
cdf3cae6 |
11 | } |
12 | |
13 | no Moose::Role; |
14 | |
15 | 1; |
e8953f86 |
16 | |
17 | __END__ |
18 | |
19 | =pod |
20 | |
21 | =head1 NAME |
22 | |
23 | Moose::Meta::Attribute::Native::MethodProvider::Code |
24 | |
25 | =head1 DESCRIPTION |
26 | |
27 | This is a role which provides the method generators for |
28 | L<Moose::Meta::Attribute::Native::Trait::Code>. Please check there for |
29 | documentation on what methods are provided. |
30 | |
31 | =head1 METHODS |
32 | |
33 | =over 4 |
34 | |
35 | =item B<meta> |
36 | |
37 | =back |
38 | |
39 | =head1 BUGS |
40 | |
d4048ef3 |
41 | See L<Moose/BUGS> for details on reporting bugs. |
e8953f86 |
42 | |
43 | =head1 AUTHOR |
44 | |
45 | Florian Ragwitz <rafl@debian.org> |
46 | |
47 | =head1 COPYRIGHT AND LICENSE |
48 | |
49 | Copyright 2007-2009 by Infinity Interactive, Inc. |
50 | |
51 | L<http://www.iinteractive.com> |
52 | |
53 | This library is free software; you can redistribute it and/or modify |
54 | it under the same terms as Perl itself. |
55 | |
56 | =cut |