| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Sque::Encoder; |
|
2
|
|
|
|
|
|
|
$Sque::Encoder::VERSION = '0.010'; |
|
3
|
3
|
|
|
3
|
|
2827
|
use Any::Moose 'Role'; |
|
|
3
|
|
|
|
|
6
|
|
|
|
3
|
|
|
|
|
21
|
|
|
4
|
3
|
|
|
3
|
|
10169
|
use JSON; |
|
|
3
|
|
|
|
|
55048
|
|
|
|
3
|
|
|
|
|
19
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Any::Moose role for encoding Sque structures |
|
7
|
|
|
|
|
|
|
# |
|
8
|
|
|
|
|
|
|
# =attr encoder |
|
9
|
|
|
|
|
|
|
# |
|
10
|
|
|
|
|
|
|
# JSON encoder by default. |
|
11
|
|
|
|
|
|
|
# |
|
12
|
|
|
|
|
|
|
# =cut |
|
13
|
|
|
|
|
|
|
has encoder => ( is => 'ro', default => sub { JSON->new->utf8 } ); |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
1; |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__END__ |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=pod |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=encoding UTF-8 |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 NAME |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Sque::Encoder - Any::Moose role for encoding Sque structures |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 VERSION |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
version 0.010 |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 AUTHOR |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
William Wolf <throughnothing@gmail.com> |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
William Wolf has dedicated the work to the Commons by waiving all of his |
|
39
|
|
|
|
|
|
|
or her rights to the work worldwide under copyright law and all related or |
|
40
|
|
|
|
|
|
|
neighboring legal rights he or she had in the work, to the extent allowable by |
|
41
|
|
|
|
|
|
|
law. |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Works under CC0 do not require attribution. When citing the work, you should |
|
44
|
|
|
|
|
|
|
not imply endorsement by the author. |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |