| 1 | package Flux::Format; | ||
| 2 | { | ||
| 3 | 1 | $Flux::Format::VERSION = '1.03'; | |
| 4 | } | ||
| 5 | |||
| 6 | # ABSTRACT: interface for symmetric two-way formatting of any storage. | ||
| 7 | |||
| 8 | |||
| 9 | 1 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | ▶ | use Flux::Storage::Formatted; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 1 | requires 'encoder'; | |
| 14 | |||
| 15 | 1 | requires 'decoder'; | |
| 16 | |||
| 17 | 1 | ▶ | sub wrap { |
|
Subroutine
wrap: called CC=1 SCAR=0.0
Pod
documented
| |||
| 18 | 1 | my $self = shift; | |
| 19 | 1 | my ($storage) = @_; | |
| 20 | |||
| 21 | 1 | return Flux::Storage::Formatted->new({ format => $self, storage => $storage }); | |
| 22 | } | ||
| 23 | |||
| 24 | |||
| 25 | 1 | 1; | |
| 26 | |||
| 27 | __END__ | ||