10 package My::Custom::Meta::Attr;
13 extends 'Moose::Meta::Attribute';
17 package My::Fancy::Role;
20 has 'bling_bling' => (
21 metaclass => 'My::Custom::Meta::Attr',
31 with 'My::Fancy::Role';
34 my $c = My::Class->new;
35 isa_ok($c, 'My::Class');
37 ok($c->meta->has_attribute('bling_bling'), '... got the attribute');
39 isa_ok($c->meta->get_attribute('bling_bling'), 'My::Custom::Meta::Attr');