my ($class, $meta) = @_;
my $associated_metaclass_name = $meta->name;
- my @attrs = $meta->compute_all_applicable_attributes;
+ my @attrs = $meta->get_all_attributes;
my $buildall = $class->_generate_BUILDALL($meta);
my $buildargs = $class->_generate_BUILDARGS($meta);
my $processattrs = $class->_generate_processattrs($meta, \@attrs);
my $instance = bless {}, $class;
- for my $attribute ($class->meta->compute_all_applicable_attributes) {
+ for my $attribute ($class->meta->get_all_attributes) {
my $from = $attribute->init_arg;
my $key = $attribute->name;
ok($obj->child, "local attribute set in constructor");
ok($obj->class, "inherited attribute set in constructor");
-is_deeply([Child->meta->compute_all_applicable_attributes], [
+is_deeply([Child->meta->get_all_attributes], [
Child->meta->get_attribute('child'),
Class->meta->get_attribute('class'),
-], "correct compute_all_applicable_attributes");
+], "correct get_all_attributes");
do {
package Foo;
is(Bar->meta->get_attribute('attr')->default, undef);
is(Bar->meta->get_attribute('attr')->_is_metadata, 'rw');
-is_deeply([Foo->meta->compute_all_applicable_attributes], [
+is_deeply([Foo->meta->get_all_attributes], [
Foo->meta->get_attribute('attr'),
-], "correct compute_all_applicable_attributes");
+], "correct get_all_attributes");
-is_deeply([Bar->meta->compute_all_applicable_attributes], [
+is_deeply([Bar->meta->get_all_attributes], [
Bar->meta->get_attribute('attr'),
-], "correct compute_all_applicable_attributes");
+], "correct get_all_attributes");