return +{
map { $_->name => $_->get_value($instance) }
grep { $_->has_value($instance) }
- $self->>compute_all_applicable_attributes
+ $self->compute_all_applicable_attributes
};
}
use strict;
use warnings;
-use Test::More tests => 205;
+use Test::More tests => 209;
use Test::Exception;
BEGIN {
instance_metaclass get_meta_instance
new_object clone_object
+ get_attribute_values get_init_args
construct_instance construct_class_instance clone_instance
rebless_instance
check_metaclass_compatability
$foo->set_bar(1);
$foo->baz(10);
-is_deeply($foo->meta->get_meta_instance->get_all_slot_values($foo), {
+is_deeply($foo->meta->get_attribute_values($foo), {
bar => 1,
baz => 10,
});
my $bar = bless {}, 'Bar';
$bar->set_bar(99);
-is_deeply($bar->meta->get_meta_instance->get_all_slot_values($bar), {
+is_deeply($bar->meta->get_attribute_values($bar), {
bar => 99,
});
$bar->quux(1337);
-is_deeply($bar->meta->get_meta_instance->get_all_slot_values($bar), {
+is_deeply($bar->meta->get_attribute_values($bar), {
bar => 99,
quux => 1337,
});