is_stub#

Whether a method is only declared: sub foo;, or a sub that was referred to but never defined.

Synopsis#

my $method = Class::MOP::Class->initialize('Foo')->get_method('bar');
print $method->is_stub ? "declared only\n" : "defined\n";

What you get back#

True when the method’s body has neither Perl code nor compiled code behind it, false otherwise. Dies when the method’s body is not a code reference.