Class::MOP::Instance->meta->add_attribute(
Class::MOP::Attribute->new('attributes',
- reader => { attributes => \&Class::MOP::Instance::attributes },
+ reader => { attributes => \&Class::MOP::Instance::get_all_attributes },
),
);
return @{$self->{'slots'}};
}
+sub get_all_attributes {
+ my $self = shift;
+ return @{$self->{attributes}};
+}
+
sub is_valid_slot {
my ($self, $slot_name) = @_;
exists $self->{'slot_hash'}->{$slot_name};