NAME
Class::AutoAccess - Zero code dynamic accessors implementation.
VERSION
Version 0.01
DESCRIPTION
This class provides an autoload method that is used as an automated accessor for object internal attributes.
Class that inherits from this have to be implement as blessed hashmaps (almost all objects).
As from now, this AUTOLOAD method produces the actual accessor method the first time it's called. This speeds up your programm since a real accessor exists after.
SYNOPSIS
package Foo ; use base qw/Class::AutoAccess/ ;
sub new{ my ($class) = @_ ; my $self = { 'bar' => undef , 'baz' => undef }; return bless $self, $class ; }
1;
package main ;
my $o = Foo->new();
$o->bar(); $o->bar("new value"); $o->baz() ; ...
AUTHOR
Jerome Eteve, <jerome@eteve.net>
BUGS
Please report any bugs or feature requests to bug-class-autoaccess@rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Class-AutoAccess. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2005 Jerome Eteve, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.