Skip to content

Commit

Permalink
can on inline objects should return a coderef when a method is found,…
Browse files Browse the repository at this point in the history
… not a 1
  • Loading branch information
haarg authored and miyagawa committed Jul 3, 2010
1 parent 1ce230b commit 2f8d487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Plack/Util.pm
Expand Up @@ -240,7 +240,7 @@ package Plack::Util::Prototype;

our $AUTOLOAD;
sub can {
exists $_[0]->{$_[1]};
$_[0]->{$_[1]};
}

sub AUTOLOAD {
Expand Down

0 comments on commit 2f8d487

Please sign in to comment.