summaryrefslogtreecommitdiffstats
path: root/lib/Bread/Board/Declare/Role
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-02-21 16:58:32 -0600
committerJesse Luehrs <doy@tozt.net>2011-02-21 16:58:32 -0600
commit365ea7e974e669547ee2c4a1b8f394149349c3ce (patch)
treeb51f9633fbbcb6cd1f0a2d839bc63674d27f4b90 /lib/Bread/Board/Declare/Role
parentef7e50ac283e90f9a1de96c6e3e65f636018cace (diff)
downloadbread-board-declare-365ea7e974e669547ee2c4a1b8f394149349c3ce.tar.gz
bread-board-declare-365ea7e974e669547ee2c4a1b8f394149349c3ce.zip
add docs
Diffstat (limited to 'lib/Bread/Board/Declare/Role')
-rw-r--r--lib/Bread/Board/Declare/Role/Service.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Bread/Board/Declare/Role/Service.pm b/lib/Bread/Board/Declare/Role/Service.pm
index a428dfd..e0b36f9 100644
--- a/lib/Bread/Board/Declare/Role/Service.pm
+++ b/lib/Bread/Board/Declare/Role/Service.pm
@@ -4,10 +4,17 @@ use Moose::Role;
=head1 DESCRIPTION
+This role modifies L<Bread::Board::Service> objects for use in
+L<Bread::Board::Declare>. It holds a reference to the attribute object that the
+service is associated with, and overrides the C<get> method to prefer to return
+the value in the attribute, if it exists.
+
=cut
=attr associated_attribute
+The attribute metaobject that this service is associated with.
+
=cut
has associated_attribute => (
@@ -32,6 +39,9 @@ around get => sub {
=method parent_container
+Returns the Bread::Board::Declare container object that this service is
+contained in.
+
=cut
sub parent_container {