|| $self->throw_error("You must supply a role name to look for");
for my $class ($self->linearized_isa) {
- my $meta = Mouse::Meta::Module::class_of($class);
+ my $meta = Mouse::Meta::Module::get_metaclass_by_name($class);
next unless $meta && $meta->can('roles');
for my $role (@{ $meta->roles }) {
use Scalar::Util qw/blessed looks_like_number openhandle/;
use Mouse::Util qw(does_role not_supported);
-use Mouse::Meta::Module; # class_of
+use Mouse::Meta::Module; # get_metaclass_by_name()
use Mouse::Meta::TypeConstraint;
our @ISA = qw(Exporter);
return $TYPE{$spec} if exists $TYPE{$spec};
- my $meta = Mouse::Meta::Module::class_of($spec);
+ my $meta = Mouse::Meta::Module::get_metaclass_by_name($spec);
if(!$meta){
return;