# this is for an extra attribute constructor
# option, which is to be able to create a
# way for the class to access the history
-AttributesWithHistory->meta->add_attribute('$!history_accessor' => (
+AttributesWithHistory->meta->add_attribute('history_accessor' => (
reader => 'history_accessor',
init_arg => 'history_accessor',
predicate => 'has_history_accessor',
# this is a place to store the actual
# history of the attribute
-AttributesWithHistory->meta->add_attribute('$!_history' => (
+AttributesWithHistory->meta->add_attribute('_history' => (
accessor => '_history',
default => sub { {} },
));
my ($self) = @_;
# and now add the history accessor
$self->associated_class->add_method(
- $self->process_accessors('history_accessor' => $self->history_accessor())
+ $self->_process_accessors('history_accessor' => $self->history_accessor())
) if $self->has_history_accessor();
});
=head1 COPYRIGHT AND LICENSE
-Copyright 2006 by Infinity Interactive, Inc.
+Copyright 2006-2008 by Infinity Interactive, Inc.
L<http://www.iinteractive.com>