Class-ExtraAttributes

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

README for Class::ExtraAttributes

This module makes it possible to transparently add attributes to an existing
class (usually a subclass of a standard class) without interfering with the
functionality of that class.  This functionality is based on the OOB class
which allows attributes to be added to any Perl data-structure.

Version:
 0.02

Required Modules:
 OOB (0.08)

lib/Class/ExtraAttributes.pm  view on Meta::CPAN

     # perform retrieve of extra attributes
 }

=head1 DESCRIPTION

Ever ran into the problem that you want to subclass an existing class B<and>
add extra attributes to that class?  And run into the problem of having to
know the internal representation of that class in order to be able to do so?
Look no further, this module is (at least a large part) of the solution.

This module makes it possible to transparently add attributes to an existing
class (usually a subclass of a standard class) without interfering with the
functionality of that class.  This functionality is based on the L<OOB> class
which allows attributes to be added to any Perl data-structure.

Of course, this only applies to extra attributes on instantiated objects.
If there is a persistent backend for the class ( as there e.g. is with
L<Class::DBI> or L<DBIx::Class> ), then you will have to provide your own
persistence "update" and "retrieve" to the class.

=head1 THEORY OF OPERATION



( run in 0.518 second using v1.01-cache-2.11-cpan-0a6323c29d9 )