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