| 1 | package AnyEvent::Subprocess::Delegate; | ||
| 2 | 48 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 48 | $AnyEvent::Subprocess::Delegate::VERSION = '1.102912'; | |
| 4 | } | ||
| 5 | # ABSTRACT: role representing a delegate | ||
| 6 | 48 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 47 | with 'MooseX::Clone'; | |
| 9 | |||
| 10 | 47 | has 'name' => ( | |
| 11 | is => 'ro', | ||
| 12 | isa => 'Str', | ||
| 13 | required => 1, | ||
| 14 | ); | ||
| 15 | |||
| 16 | 47 | 1; | |
| 17 | |||
| 18 | |||
| 19 | |||
| 20 | =pod | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | AnyEvent::Subprocess::Delegate - role representing a delegate | ||
| 25 | |||
| 26 | =head1 VERSION | ||
| 27 | |||
| 28 | version 1.102912 | ||
| 29 | |||
| 30 | =head1 DESCRIPTION | ||
| 31 | |||
| 32 | All delegates consume this role; it provides C<name> and is a type | ||
| 33 | tag. | ||
| 34 | |||
| 35 | =head1 METHODS | ||
| 36 | |||
| 37 | =head2 clone | ||
| 38 | |||
| 39 | Returns a deep copy of the delegate. | ||
| 40 | |||
| 41 | =head1 REQUIRED ATTRIBUTES | ||
| 42 | |||
| 43 | =head2 name | ||
| 44 | |||
| 45 | The name of the delegate. You can only have one delegate of each name | ||
| 46 | per class. | ||
| 47 | |||
| 48 | =head1 SEE ALSO | ||
| 49 | |||
| 50 | L<AnyEvent::Subprocess> | ||
| 51 | |||
| 52 | L<AnyEvent::Subprocess::Role::WithDelegates> | ||
| 53 | |||
| 54 | =head1 AUTHOR | ||
| 55 | |||
| 56 | Jonathan Rockway <jrockway@cpan.org> | ||
| 57 | |||
| 58 | =head1 COPYRIGHT AND LICENSE | ||
| 59 | |||
| 60 | This software is copyright (c) 2011 by Jonathan Rockway. | ||
| 61 | |||
| 62 | This is free software; you can redistribute it and/or modify it under | ||
| 63 | the same terms as the Perl 5 programming language system itself. | ||
| 64 | |||
| 65 | =cut | ||
| 66 | |||
| 67 | |||
| 68 | __END__ | ||