sub has_method {
my ($self, $method_name) = @_;
- (defined $method_name && $method_name)
+
+ defined($method_name)
|| confess "You must define a method name";
return defined($self->get_method($method_name));
sub get_method {
my ( $self, $method_name ) = @_;
- ( defined $method_name && $method_name )
+
+ defined($method_name)
|| confess "You must define a method name";
my $method_map = $self->_method_map;