summaryrefslogtreecommitdiff
path: root/lib/pry/commands/ls/constants.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pry/commands/ls/constants.rb')
-rw-r--r--lib/pry/commands/ls/constants.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/commands/ls/constants.rb b/lib/pry/commands/ls/constants.rb
index 27c3f493..a07ff896 100644
--- a/lib/pry/commands/ls/constants.rb
+++ b/lib/pry/commands/ls/constants.rb
@@ -54,7 +54,7 @@ class Pry
end
color(:exception_constant, name)
elsif begin
- Module === mod.const_get(name)
+ mod.const_get(name).is_a?(Module)
rescue StandardError
false
end