# File lib/pry/pry_instance.rb, line 95
  def refresh(options={})
    defaults   = {}
    attributes = [
                   :input, :output, :commands, :print, :quiet,
                   :exception_handler, :hooks, :custom_completions,
                   :prompt, :memory_size, :input_stack, :extra_sticky_locals
                 ]

    attributes.each do |attribute|
      defaults[attribute] = Pry.send attribute
    end

    defaults.merge!(options).each do |key, value|
      send("#{key}=", value) if respond_to?("#{key}=")
    end

    true
  end