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

Workaround JRUBY-6753

This commit is contained in:
Conrad Irwin 2012-07-01 00:29:17 -07:00
parent 773daa501f
commit d57f229c05

View file

@ -41,7 +41,8 @@ class Pry
def internal_binding?(target)
m = target.eval("__method__").to_s
["__binding__", "__binding_impl__"].include?(m)
# class_eval is here because of http://jira.codehaus.org/browse/JRUBY-6753
["__binding__", "__binding_impl__", "class_eval"].include?(m)
end
def get_method_or_raise(name, target, opts={}, omit_help=false)