These autoloads do not serve much.

This commit is contained in:
Akinori MUSHA 2013-03-15 12:10:22 +09:00
parent 236f3af719
commit 05e5d332df

View file

@ -5,8 +5,8 @@ require 'http/cookie'
# any particular website. # any particular website.
class HTTP::CookieJar class HTTP::CookieJar
autoload :AbstractSaver, 'http/cookie_jar/abstract_saver' require 'http/cookie_jar/abstract_store'
autoload :AbstractStore, 'http/cookie_jar/abstract_store' require 'http/cookie_jar/abstract_saver'
attr_reader :store attr_reader :store
@ -136,7 +136,7 @@ class HTTP::CookieJar
begin begin
saver = AbstractSaver.implementation(opthash[:format]).new(opthash) saver = AbstractSaver.implementation(opthash[:format]).new(opthash)
rescue KeyError => e rescue IndexError => e
raise ArgumentError, e.message raise ArgumentError, e.message
end end
@ -197,7 +197,7 @@ class HTTP::CookieJar
begin begin
saver = AbstractSaver.implementation(opthash[:format]).new(opthash) saver = AbstractSaver.implementation(opthash[:format]).new(opthash)
rescue KeyError => e rescue IndexError => e
raise ArgumentError, e.message raise ArgumentError, e.message
end end