diff options
Diffstat (limited to 'lib/Bread/Board/Declare/Role/Service.pm')
-rw-r--r-- | lib/Bread/Board/Declare/Role/Service.pm | 10 |
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 { |