module Pry::Helpers::CommandHelpers
def internal_binding?(context)
def internal_binding?(context) method_name = context.eval("::Kernel.__method__").to_s # class_eval is here because of http://jira.codehaus.org/browse/JRUBY-6753 %w[__binding__ __pry__ class_eval].include?(method_name) # TODO: codehaus is dead, there was no test for this and the # description for the commit doesn't exist. Probably a candidate for # removal so we have a chance to introduce a regression and document it # properly. end