lib/http/cookie_jar/abstract_store.rb in http-cookie-1.0.0.pre11 vs lib/http/cookie_jar/abstract_store.rb in http-cookie-1.0.0.pre12
- old
+ new
@@ -28,11 +28,11 @@
klass.name[/[^:]+?(?=Store$|$)/].downcase.to_sym
end
end
def default_options
- {}
+ # {}
end
private :default_options
def initialize(options = nil)
super() # MonitorMixin
@@ -44,22 +44,19 @@
instance_variable_set("@#{key}", options.fetch(key, default))
}
end
def initialize_copy(other)
- raise
- self
+ # self
end
def add(cookie)
- raise
- self
+ # self
end
def delete(cookie)
- raise
- self
+ # self
end
# Iterates over all cookies that are not expired.
#
# An optional argument +uri+ specifies a URI object indicating the
@@ -68,37 +65,36 @@
# i.e. cookie.valid_for_uri?(uri) evaluates to true.
#
# If (and only if) the +uri+ option is given, last access time of
# each cookie is updated to the current time.
def each(uri = nil, &block)
- if uri
- raise
- else
- synchronize {
- raise
- }
- end
- self
+ # if uri
+ # ...
+ # else
+ # synchronize {
+ # ...
+ # }
+ # end
+ # self
end
include Enumerable
def empty?
- raise
+ # true or false
end
def clear
- raise
- self
+ # self
end
def cleanup(session = false)
- if session
- select { |cookie| cookie.session? || cookie.expired? }
- else
- select(&:expired?)
- end.each { |cookie|
- delete(cookie)
- }
- # subclasses can optionally remove over-the-limit cookies.
- self
+ # if session
+ # select { |cookie| cookie.session? || cookie.expired? }
+ # else
+ # select(&:expired?)
+ # end.each { |cookie|
+ # delete(cookie)
+ # }
+ # # subclasses can optionally remove over-the-limit cookies.
+ # self
end
end