diff options
Diffstat (limited to 'lib/pry/helpers/base_helpers.rb')
-rw-r--r-- | lib/pry/helpers/base_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/helpers/base_helpers.rb b/lib/pry/helpers/base_helpers.rb index b8c6bff6..897362d4 100644 --- a/lib/pry/helpers/base_helpers.rb +++ b/lib/pry/helpers/base_helpers.rb @@ -20,7 +20,7 @@ class Pry # This is required to introspect methods on objects like Net::HTTP::Get that # have overridden the `method` method. def safe_send(obj, method, *args, &block) - (Module === obj ? Module : Object).instance_method(method) + (obj.is_a?(Module) ? Module : Object).instance_method(method) .bind(obj).call(*args, &block) end |