NAME

Brickyard::Accessor - Accessor generator for Brickyard classes

VERSION

version 1.111750

SYNOPSIS

package MyPackage;

use Brickyard::Accessor (
    new => 1,
    rw  => [ qw(foo bar) ]
);

DESCRIPTION

This module is based on Class::Accessor::Lite, adapted to suit the needs of Brickyard.

THE USE STATEMENT

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.

new => $true_or_false

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 => \@name_of_the_properties

Creates a scalar read-write accessor for the property names in the array reference.

INSTALLATION

See perlmodinstall for information and options on installing Perl modules.

BUGS AND LIMITATIONS

No bugs have been reported.

Please report any bugs or feature requests through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=Brickyard.

AVAILABILITY

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see http://search.cpan.org/dist/Brickyard/.

The development version lives at http://github.com/hanekomu/Brickyard and may be cloned from git://github.com/hanekomu/Brickyard.git. Instead of sending patches, please fork this project using the standard git and github infrastructure.

AUTHOR

Marcel Gruenauer <marcel@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Marcel Gruenauer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.