line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Message::Passing::Role::HasHostnameAndPort; |
2
|
2
|
|
|
2
|
|
1543
|
use Moo::Role; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
12
|
|
3
|
2
|
|
|
2
|
|
661
|
use MooX::Types::MooseLike::Base qw/ Str Int /; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
144
|
|
4
|
2
|
|
|
2
|
|
15
|
use namespace::clean -except => 'meta'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
45
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
requires '_default_port'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has hostname => ( |
9
|
|
|
|
|
|
|
is => 'ro', |
10
|
|
|
|
|
|
|
isa => Str, |
11
|
|
|
|
|
|
|
required => 1, |
12
|
|
|
|
|
|
|
); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has port => ( |
15
|
|
|
|
|
|
|
is => 'ro', |
16
|
|
|
|
|
|
|
isa => Int, |
17
|
|
|
|
|
|
|
builder => '_default_port', |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 NAME |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Message::Passing::Role::HasHostnameAndPort |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 DESCRIPTION |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Adds a C<hostname> and a C<port> attributes to your class. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 METHODS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head2 hostname |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head2 port |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 AUTHOR, COPYRIGHT AND LICENSE |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
See L<Message::Passing>. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |