# File lib/pry/pry_class.rb, line 342
  def self.toplevel_binding
    unless defined?(@toplevel_binding) && @toplevel_binding
      # Grab a copy of the TOPLEVEL_BINDING without any local variables.
      # This binding has a default definee of Object, and new methods are
      # private (just as in TOPLEVEL_BINDING).
      TOPLEVEL_BINDING.eval "def self.__pry__\nbinding\nend\nPry.toplevel_binding = __pry__\nclass << self; undef __pry__; end\n"
    end
    @toplevel_binding.eval('private')
    @toplevel_binding
  end