lib/pry-byebug/base.rb
module PryByebug extend self # Checks that a binding is in a local file context. Extracted from # https://github.com/pry/pry/blob/master/lib/pry/default_commands/context.rb def check_file_context(target) file = target.eval('__FILE__') file == Pry.eval_path || (file !~ /(\(.*\))|<.*>/ && file != '' && file != '-e') end # Reference to currently running pry-remote server. Used by the processor. attr_accessor :current_remote_server end