| 1 | package Data::Encoder::YAML; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use YAML (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 8 | 1 | my ($class, $args) = @_; | |
| 9 | 1 | bless \my $obj, __PACKAGE__; | |
| 10 | } | ||
| 11 | |||
| 12 | 1 | ▶ | sub encode { |
|
Subroutine
encode: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 13 | 1 | my ($self, $stuff, @args) = @_; | |
| 14 | 1 | YAML::Dump($stuff); | |
| 15 | } | ||
| 16 | |||
| 17 | 1 | ▶ | sub decode { |
|
Subroutine
decode: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 18 | 1 | my ($self, $stuff, @args) = @_; | |
| 19 | 1 | YAML::Load($stuff); | |
| 20 | } | ||
| 21 | |||
| 22 | 1 | 1; | |
| 23 | __END__ | ||