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();
});
# generate the methods
-sub generate_history_accessor_method {
+sub _generate_history_accessor_method {
my $attr_name = (shift)->associated_attribute->name;
eval qq{sub {
unless (ref \$_[0]->meta->get_attribute('$attr_name')->_history()->\{\$_[0]\}) \{
}};
}
-sub generate_accessor_method {
+sub _generate_accessor_method {
my $attr_name = (shift)->associated_attribute->name;
eval qq{sub {
if (scalar(\@_) == 2) {
}};
}
-sub generate_writer_method {
+sub _generate_writer_method {
my $attr_name = (shift)->associated_attribute->name;
eval qq{sub {
unless (ref \$_[0]->meta->get_attribute('$attr_name')->_history()->\{\$_[0]\}) \{
=head1 COPYRIGHT AND LICENSE
-Copyright 2006 by Infinity Interactive, Inc.
+Copyright 2006-2008 by Infinity Interactive, Inc.
L<http://www.iinteractive.com>