diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-02-21 16:58:32 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-02-21 16:58:32 -0600 |
commit | 365ea7e974e669547ee2c4a1b8f394149349c3ce (patch) | |
tree | b51f9633fbbcb6cd1f0a2d839bc63674d27f4b90 /lib/Bread/Board/Declare/Meta | |
parent | ef7e50ac283e90f9a1de96c6e3e65f636018cace (diff) | |
download | bread-board-declare-365ea7e974e669547ee2c4a1b8f394149349c3ce.tar.gz bread-board-declare-365ea7e974e669547ee2c4a1b8f394149349c3ce.zip |
add docs
Diffstat (limited to 'lib/Bread/Board/Declare/Meta')
-rw-r--r-- | lib/Bread/Board/Declare/Meta/Role/Attribute.pm | 21 | ||||
-rw-r--r-- | lib/Bread/Board/Declare/Meta/Role/Class.pm | 5 |
2 files changed, 26 insertions, 0 deletions
diff --git a/lib/Bread/Board/Declare/Meta/Role/Attribute.pm b/lib/Bread/Board/Declare/Meta/Role/Attribute.pm index 82d90db..4ae6a94 100644 --- a/lib/Bread/Board/Declare/Meta/Role/Attribute.pm +++ b/lib/Bread/Board/Declare/Meta/Role/Attribute.pm @@ -12,10 +12,15 @@ use Bread::Board::Declare::Literal; =head1 DESCRIPTION +This role adds functionality to the attribute metaclass for +L<Bread::Board::Declare> objects. + =cut =attr service +Whether or not to create a service for this attribute. Defaults to true. + =cut has service => ( @@ -26,6 +31,8 @@ has service => ( =attr block +The block to use when creating a L<Bread::Board::BlockInjection> service. + =cut has block => ( @@ -36,6 +43,9 @@ has block => ( =attr literal_value +The value to use when creating a L<Bread::Board::Literal> service. Note that +the parameter that should be passed to C<has> is C<value>. + =cut # has_value is already a method @@ -48,6 +58,9 @@ has literal_value => ( =attr lifecycle +The lifecycle to use when creating the service. See L<Bread::Board::Service> +and L<Bread::Board::LifeCycle>. + =cut has lifecycle => ( @@ -58,6 +71,9 @@ has lifecycle => ( =attr dependencies +The dependency specification to use when creating the service. See +L<Bread::Board::Service::WithDependencies>. + =cut has dependencies => ( @@ -69,6 +85,9 @@ has dependencies => ( =attr constructor_name +The constructor name to use when creating L<Bread::Board::ConstructorInjection> +services. Defaults to C<new>. + =cut has constructor_name => ( @@ -79,6 +98,8 @@ has constructor_name => ( =attr associated_service +The service object that is associated with this attribute. + =cut has associated_service => ( diff --git a/lib/Bread/Board/Declare/Meta/Role/Class.pm b/lib/Bread/Board/Declare/Meta/Role/Class.pm index 57a9db9..3ece152 100644 --- a/lib/Bread/Board/Declare/Meta/Role/Class.pm +++ b/lib/Bread/Board/Declare/Meta/Role/Class.pm @@ -7,10 +7,15 @@ use List::MoreUtils qw(any); =head1 DESCRIPTION +This role adds functionality to the metaclass of L<Bread::Board::Declare> +classes. + =cut =method get_all_services +Returns all of the services that are associated with attributes in this class. + =cut sub get_all_services { |