Audio::Nama::Does::Persist # later, # for the class, provides an # (possibly filtered, altered) # array of objects.
In a role:
1;
In your class: package My::Class; use Role::Basic 'with'; with qw( Does::Serialize::AsYAML ); sub as_hash { ... } # because the role requires it
Audio::Nama::Object - Class builder
# Define a class package Foo; use Audio::Nama::Object qw{ bux baz }; 1; # Use the class my $object = Foo->new( bux => 1 ); $object->set( bux => 2); print "bux is " . $object->bux . "\n"; # Define a subclass (automatically inherits parent attributes) package Bar; our @ISA = 'Foo'; my $lonely_bar = Bar->new(); $lonely_bar->set(bux => 3);
1 POD Error
The following errors were encountered while parsing the POD:
Unknown directive: =comment
To install Audio::Nama, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::Nama
CPAN shell
perl -MCPAN -e shell install Audio::Nama
For more information on module installation, please visit the detailed CPAN module installation guide.