Venus::Role::Stashable
Stashable Role
Stashable Role for Perl 5
method: stash
package Example;
use Venus::Class;
with 'Venus::Role::Stashable';
attr 'test';
package main;
my $example = Example->new(test => time);
# $example->stash;
This package modifies the consuming package and provides methods for stashing data within the object.
The stash method is used to fetch and stash named values associated with the object. Calling this method without arguments returns all values.
stash(any $key, any $value) (any)
{ since => '0.01', }
=example-1 stash
package main;
my $example = Example->new(test => time);
my $stash = $example->stash;
# {}
t/Venus.t: present: authors t/Venus.t: present: license
12 POD Errors
The following errors were encountered while parsing the POD:
- Around line 13:
Unknown directive: =name
- Around line 21:
Unknown directive: =tagline
- Around line 29:
Unknown directive: =abstract
- Around line 37:
Unknown directive: =includes
- Around line 45:
Unknown directive: =synopsis
- Around line 72:
Unknown directive: =description
- Around line 81:
Unknown directive: =method
- Around line 86:
Unknown directive: =signature
- Around line 90:
Unknown directive: =metadata
- Around line 126:
=cut found outside a pod block. Skipping to next block.
- Around line 146:
=cut found outside a pod block. Skipping to next block.
- Around line 156:
Unknown directive: =partials