1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Skip modules that mess with Class#hash

Like Argon2::Password in argon2 < v1.1.1.
This commit is contained in:
Dmitry Gutov 2016-12-12 03:24:09 +02:00
parent 26e330f382
commit 353a42b706

View file

@ -170,7 +170,7 @@ class Pry::InputCompleter
candidates = []
to_ignore = ignored_modules
ObjectSpace.each_object(Module){|m|
next if to_ignore.include?(m)
next if to_ignore.include?(m) rescue true
# jruby doesn't always provide #instance_methods() on each
# object.