class Pry::History

def read_from_file

The default loader. Yields lines from `Pry.config.history_file`.
def read_from_file
  path = history_file_path
  File.foreach(path) { |line| yield(line) } if File.exist?(path)
rescue SystemCallError => error
  warn "Unable to read history file: #{error.message}"
end