line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Message::Passing::Role::HasHostnameAndPort; |
2
|
2
|
|
|
2
|
|
2097
|
use Moo::Role; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
16
|
|
3
|
2
|
|
|
2
|
|
759
|
use MooX::Types::MooseLike::Base qw/ Str Int /; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
152
|
|
4
|
2
|
|
|
2
|
|
11
|
use namespace::clean -except => 'meta'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
15
|
|
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 and a C 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. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |