line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
# ABSTRACT: something that can treat as a namespace |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
use strict; |
5
|
13
|
|
|
13
|
|
13518
|
use warnings; |
|
13
|
|
|
|
|
26
|
|
|
13
|
|
|
|
|
346
|
|
6
|
13
|
|
|
13
|
|
59
|
use Moo::Role; |
|
13
|
|
|
|
|
23
|
|
|
13
|
|
|
|
|
254
|
|
7
|
13
|
|
|
13
|
|
54
|
use namespace::autoclean; |
|
13
|
|
|
|
|
19
|
|
|
13
|
|
|
|
|
66
|
|
8
|
13
|
|
|
13
|
|
4061
|
|
|
13
|
|
|
|
|
9571
|
|
|
13
|
|
|
|
|
72
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.052'; # VERSION |
10
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:CHIM'; # AUTHORITY |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
requires 'available_methods'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
1; # End of Regru::API::Role::Namespace |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=pod |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=encoding UTF-8 |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
Regru::API::Role::Namespace - something that can treat as a namespace |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 VERSION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
version 0.052 |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
package Regru::API::Dummy; |
32
|
|
|
|
|
|
|
... |
33
|
|
|
|
|
|
|
with 'Regru::API::Role::Namespace'; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub available_methods { [qw(foo bar baz)] } |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 DESCRIPTION |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Any class or role that consumes this one will considered as a namespace (or category) in REG.API v2. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 REQUIREMENTS |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head2 available_methods |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
A list of methods (as array reference) provides by namespace. An empty array reference should be used in |
46
|
|
|
|
|
|
|
case of namespace does not provide any methods. But this so odd... |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SEE ALSO |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
L<Regru::API> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
L<Regru::API::Role::Client> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 BUGS |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Please report any bugs or feature requests on the bugtracker website |
57
|
|
|
|
|
|
|
L<https://github.com/regru/regru-api-perl/issues> |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
When submitting a bug or request, please include a test-file or a |
60
|
|
|
|
|
|
|
patch to an existing test-file that illustrates the bug or desired |
61
|
|
|
|
|
|
|
feature. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 AUTHORS |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=over 4 |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item * |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Polina Shubina <shubina@reg.ru> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=item * |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Anton Gerasimov <a.gerasimov@reg.ru> |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=back |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
This software is copyright (c) 2013 by REG.RU LLC. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
82
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=cut |