Brickyard::Accessor - Accessor generator for Brickyard classes
package MyPackage; use Brickyard::Accessor ( new => 1, rw => [ qw(foo bar) ] );
This module is based on Class::Accessor::Lite, adapted to suit the needs of Brickyard.
The use statement (i.e. the import function) of the module takes a single hash as an argument that specifies the types and the names of the properties. It recognizes the following keys.
import
new
Creates a default constructor if the value evaluates to true. Normally no constructor is created. The constructor accepts a hash of arguments to initialize a new object.
rw
Creates a scalar read-write accessor for the property names in the array reference.
To install Brickyard, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Brickyard
CPAN shell
perl -MCPAN -e shell install Brickyard
For more information on module installation, please visit the detailed CPAN module installation guide.