NAME
Class::Accessor::Classy - accessors with minimal inheritance
SYNOPSIS
use Class::Accessor::Classy;
with qw(new); # with a new() method
ro qw(foo); # read-only
rw qw(bar); # read-write
rs baz => \(my $set_baz); # read-only, plus a secret writer
no Class::Accessor::Classy;
exports
my %exports = Class::Accessor::Classy->exports;
import
Class::Accessor::Classy->import;
unimport
Class::Accessor::Classy->unimport;
create_package
Creates and returns the package in which the accessors will live. Also pushes the created accessor package into the caller's @ISA.
If it already exists, simply returns the cached value.
my $package = Class::Accessor::Classy->create_package(
class => $caller,
in => $package, # optional
);
make_standards
Class::Accessor::Classy->make_standards($class, @list);
make_getters
Class::Accessor::Classy->make_getters($class, @list);
make_setters
Class::Accessor::Classy->make_setters($class, @list);
make_secrets
my @names = Class::Accessor::Classy->make_secrets($class, @list);
make_aliases
Class::Accessor::Classy->make_aliases($class, @list);
AUTHOR
Eric Wilhelm @ <ewilhelm at cpan dot org>
http://scratchcomputing.com/
BUGS
If you found this module on CPAN, please report any bugs or feature requests through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
If you pulled this development version from my /svn/, please contact me directly.
COPYRIGHT
Copyright (C) 2006 Eric L. Wilhelm, All Rights Reserved.
NO WARRANTY
Absolutely, positively NO WARRANTY, neither express or implied, is offered with this software. You use this software at your own risk. In case of loss, no person or entity owes you anything whatseover. You have been warned.
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.