line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Flux::Format; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$Flux::Format::VERSION = '1.03'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: interface for symmetric two-way formatting of any storage. |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
651
|
use Moo::Role; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
8
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
824
|
use Flux::Storage::Formatted; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
110
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
requires 'encoder'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
requires 'decoder'; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub wrap { |
18
|
1
|
|
|
1
|
1
|
48
|
my $self = shift; |
19
|
1
|
|
|
|
|
3
|
my ($storage) = @_; |
20
|
|
|
|
|
|
|
|
21
|
1
|
|
|
|
|
10
|
return Flux::Storage::Formatted->new({ format => $self, storage => $storage }); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |