NAME

Class::Param::Base - Abstract class for param implementations

SYNOPSIS

package MyParam;
use base 'Class::Param::Base';

sub get    { }
sub set    { }
sub names  { }
sub remove { }

1;

DESCRIPTION

Abstract class for param implementations

METHODS

param
# get
@names   = $param->param;
$value   = $param->param($name);
@values  = $param->param($name);

# set
$param->param( $name => $value   );
$param->param( $name => @values  );

# remove
$param->param( $name => undef    );
add
$param->add( $name => $value );
$param->add( $name => @values );
has
$boolean = $param->has($name);
clear
$param->clear;
count
$count = $param->count;
scan
$param->scan( sub {
    my ( $name, @values ) = @_;
});
as_hash
%hash = $param->as_hash;
$hash = $param->as_hash;

SUBCLASS

Subclasses must implement the following methods.

new
get
$value = $param->get($name);
set
$param->set( $name => $value );
names
@names = $param->names;
remove
$removed = $param->remove($name);

SEE ASLO

Class::Param.

AUTHOR

Christian Hansen chansen@cpan.org

COPYRIGHT

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.