# ref, depending on the Perl version.
return grep {
defined $namespace->{$_}
- && ( ref $namespace->{$_} || *{ $namespace->{$_} }{CODE} )
+ && ( ref(\$namespace->{$_}) ne 'GLOB' || *{ $namespace->{$_} }{CODE} )
&& $self->has_method($_)
}
keys %{$namespace};
my $Foo = Class::MOP::Class->initialize('Foo');
+is join(' ', sort $Foo->get_method_list),
+ 'FOO_CONSTANT baaz bang bar baz blah cake evaled_foo floob pie';
+
ok( $Foo->has_method('pie'), '... got the method stub pie' );
ok( $Foo->has_method('cake'), '... got the constant method stub cake' );