line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package JSON::API::v1::Roles::MetaObject; |
2
|
|
|
|
|
|
|
our $VERSION = '0.002'; |
3
|
6
|
|
|
6
|
|
3169
|
use Moose::Role; |
|
6
|
|
|
|
|
40
|
|
|
6
|
|
|
|
|
35
|
|
4
|
6
|
|
|
6
|
|
27240
|
use namespace::autoclean; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
32
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: An role that implements the default meta object |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has meta_object => ( |
9
|
|
|
|
|
|
|
is => 'ro', |
10
|
|
|
|
|
|
|
isa => 'Defined', |
11
|
|
|
|
|
|
|
predicate => 'has_meta_object', |
12
|
|
|
|
|
|
|
init_arg => 'meta', |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
1; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__END__ |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=pod |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=encoding UTF-8 |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 NAME |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
JSON::API::v1::Roles::MetaObject - An role that implements the default meta object |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 VERSION |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
version 0.002 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 SYNOPSIS |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 DESCRIPTION |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
This role makes sure that you never have to implement a meta object. Added |
36
|
|
|
|
|
|
|
because L<Moose> already has a C<meta> function, so we need to rename it a bit. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 AUTHOR |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Wesley Schwengle <waterkip@cpan.org> |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This software is Copyright (c) 2020 by Wesley Schwengle. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
This is free software, licensed under: |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
The (three-clause) BSD License |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=cut |