Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Correct Pry::WrappedModule#respond_to? definition #532

Merged
merged 1 commit into from

2 participants

@redgetan
Collaborator

No description provided.

@ConradIrwin ConradIrwin merged commit d7894a2 into pry:master
@ConradIrwin
Owner

Nice catch, thanks :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/pry/wrapped_module.rb
View
2  lib/pry/wrapped_module.rb
@@ -86,7 +86,7 @@ def method_missing(method_name, *args, &block)
end
def respond_to?(method_name)
- super || wrapped.send(method_name, *args, &block)
+ super || wrapped.respond_to?(method_name)
end
def doc
Something went wrong with that request. Please try again.