class Pry::Command::ReloadCode

Public Instance Methods

process() click to toggle source
# File lib/pry/commands/reload_code.rb, line 17
def process

  if obj_name.empty?
    # if no parameters were provided then try to reload the
    # current file (i.e target.eval("__FILE__"))
    reload_current_file
  else
    code_object = Pry::CodeObject.lookup(obj_name, _pry_)
    reload_code_object(code_object)
  end
end