Venus::Dump

Dump Class

Dump Class for Perl 5

method: decode method: encode method: new

package main;

use Venus::Dump;

my $dump = Venus::Dump->new(
  value => { name => ['Ready', 'Robot'], version => 0.12, stable => !!1, }
);

# $dump->encode;

This package provides methods for reading and writing dumped (i.e. stringified) Perl data.

Venus::Kind::Utility

Venus::Role::Accessible Venus::Role::Buildable Venus::Role::Explainable Venus::Role::Valuable

decoder: rw, opt, CodeRef encoder: rw, opt, CodeRef

The decode method decodes the Perl string, sets the object value, and returns the decoded value.

decode(string $text) (any)

{ since => '0.01', }

=example-1 decode

# given: synopsis;

my $decode = $dump->decode('{codename=>["Ready","Robot"],stable=>!!1}');

# { codename => ["Ready", "Robot"], stable => 1 }

The encode method encodes the objects value as a Perl string and returns the encoded string.

encode() (string)

{ since => '0.01', }

=example-1 encode

# given: synopsis;

my $encode = $dump->encode;

# '{name => ["Ready","Robot"], stable => !!1, version => "0.12"}'

The new method constructs an instance of the package.

new(any @args) (Venus::Dump)

{ since => '4.15', }

t/Venus.t: present: authors t/Venus.t: present: license

22 POD Errors

The following errors were encountered while parsing the POD:

Around line 14:

Unknown directive: =name

Around line 22:

Unknown directive: =tagline

Around line 30:

Unknown directive: =abstract

Around line 38:

Unknown directive: =includes

Around line 48:

Unknown directive: =synopsis

Around line 69:

Unknown directive: =description

Around line 78:

Unknown directive: =inherits

Around line 86:

Unknown directive: =integrates

Around line 97:

Unknown directive: =attributes

Around line 106:

Unknown directive: =method

Around line 111:

Unknown directive: =signature

Around line 115:

Unknown directive: =metadata

Around line 139:

Unknown directive: =method

Around line 144:

Unknown directive: =signature

Around line 148:

Unknown directive: =metadata

Around line 173:

Unknown directive: =method

Around line 177:

Unknown directive: =signature

Around line 181:

Unknown directive: =metadata

Around line 199:

=cut found outside a pod block. Skipping to next block.

Around line 219:

=cut found outside a pod block. Skipping to next block.

Around line 240:

=cut found outside a pod block. Skipping to next block.

Around line 251:

Unknown directive: =partials