# File lib/www/mechanize/cookie_jar.rb, line 86
      def load(file, format = :yaml)
        @jar = ::File.open(file) { |f|
          case format
          when :yaml then
            YAML::load(f)
          when :cookiestxt then
            load_cookiestxt(f)
          else
            raise "Unknown cookie jar file format"
          end
        }
      end