( defined $method_name && length $method_name )
|| confess "You must define a method name";
- return defined( $self->_get_maybe_raw_method($method_name) );
+ my $method = $self->_get_maybe_raw_method($method_name)
+ or return;
+
+ return defined($self->_method_map->{$method_name} = $method);
}
sub get_method {
my ( $self, $method_name ) = @_;
my $map_entry = $self->_method_map->{$method_name};
- return $map_entry if blessed $map_entry;
+ return $map_entry if defined $map_entry;
my $code = $self->get_package_symbol(
{