# File lib/cgi/session.rb, line 394 def restore unless @hash @hash = {} begin f = File.open(@path, 'r') f.flock File::LOCK_SH for line in f line.chomp! k, v = line.split('=',2) @hash[CGI::unescape(k)] = CGI::unescape(v) end ensure f.close unless f.nil? end end @hash end