Data::Object::Role::Dumpable
Dumpable Role for Perl 5
method: dump method: pretty_dump method: pretty_print method: pretty_say method: print method: say
package Example;
use Moo;
with 'Data::Object::Role::Dumpable';
package main;
my $example = Example->new;
# $example->dump
This package provides methods for dumping the object and underlying value.
The dump method returns a string representation of the underlying data.
dump() : Str
=example-1 dump
# given: synopsis
my $dumped = $example->dump;
The pretty_dump method returns a string representation of the underlying data that is human-readable and useful for debugging.
pretty_dump() : Str
=example-1 pretty_dump
# given: synopsis
my $dumped = $example->pretty_dump;
The pretty_print method prints a stringified human-readable representation of the underlying data.
pretty_print(Any @args) : Int
=example-1 pretty_print
# given: synopsis
my $printed = $example->pretty_print;
The pretty_say method prints a stringified human-readable representation of the underlying data, with a trailing newline.
pretty_say(Any @args) : Int
=example-1 pretty_say
# given: synopsis
my $printed = $example->pretty_say;
The print method prints a stringified representation of the underlying data.
print(Any @args) : Int
=example-1 print
# given: synopsis
my $printed = $example->print;
The say method prints a stringified representation of the underlying data, with a trailing newline.
say(Any @args) : Int
=example-1 say
# given: synopsis
my $printed = $example->say;
21 POD Errors
The following errors were encountered while parsing the POD:
- Around line 10:
Unknown directive: =name
- Around line 16:
Unknown directive: =abstract
- Around line 22:
Unknown directive: =includes
- Around line 33:
Unknown directive: =synopsis
- Around line 49:
Unknown directive: =description
- Around line 55:
Unknown directive: =method
- Around line 59:
Unknown directive: =signature
- Around line 71:
Unknown directive: =method
- Around line 76:
Unknown directive: =signature
- Around line 88:
Unknown directive: =method
- Around line 93:
Unknown directive: =signature
- Around line 111:
=cut found outside a pod block. Skipping to next block.
- Around line 113:
Unknown directive: =method
- Around line 118:
Unknown directive: =signature
- Around line 136:
=cut found outside a pod block. Skipping to next block.
- Around line 138:
Unknown directive: =method
- Around line 142:
Unknown directive: =signature
- Around line 160:
=cut found outside a pod block. Skipping to next block.
- Around line 162:
Unknown directive: =method
- Around line 167:
Unknown directive: =signature
- Around line 185:
=cut found outside a pod block. Skipping to next block.