projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
e8953f8
)
a bit more docs for code helpers
Jesse Luehrs [Fri, 11 Sep 2009 03:48:39 +0000 (22:48 -0500)]
lib/Moose/Meta/Attribute/Native.pm
patch
|
blob
|
blame
|
history
lib/Moose/Meta/Attribute/Native/Trait/Code.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/Attribute/Native.pm
b/lib/Moose/Meta/Attribute/Native.pm
index
4b4b833
..
95db4c8
100644
(file)
--- a/
lib/Moose/Meta/Attribute/Native.pm
+++ b/
lib/Moose/Meta/Attribute/Native.pm
@@
-198,6
+198,20
@@
Common methods for array references.
}
);
+=item L<Code|Moose::Meta::Attribute::Native::Trait::Code>
+
+Common methods for code references.
+
+ has 'callback' => (
+ traits => ['Code'],
+ is => 'ro',
+ isa => 'CodeRef',
+ default => sub { sub { 'called' } },
+ handles => {
+ call => 'execute',
+ }
+ );
+
=back
=head1 BUGS
diff --git
a/lib/Moose/Meta/Attribute/Native/Trait/Code.pm
b/lib/Moose/Meta/Attribute/Native/Trait/Code.pm
index
95b549a
..
4d8b9ed
100644
(file)
--- a/
lib/Moose/Meta/Attribute/Native/Trait/Code.pm
+++ b/
lib/Moose/Meta/Attribute/Native/Trait/Code.pm
@@
-61,6
+61,18
@@
Calls the coderef with the given args.
=back
+=head1 METHODS
+
+=over 4
+
+=item B<meta>
+
+=item B<method_provider>
+
+=item B<has_method_provider>
+
+=back
+
=head1 BUGS
All complex software has bugs lurking in it, and this module is no