lib/http/cookie_jar/abstract_store.rb in http-cookie-0.1.0 vs lib/http/cookie_jar/abstract_store.rb in http-cookie-0.1.1
- old
+ new
@@ -52,25 +52,25 @@
self
end
# Iterates over all cookies that are not expired.
#
- # Available option keywords are below:
+ # An optional argument +uri+ specifies a URI object indicating the
+ # destination of the cookies being selected. Every cookie yielded
+ # should be good to send to the given URI,
+ # i.e. cookie.valid_for_uri?(uri) evaluates to true.
#
- # * +uri+
- #
- # Specify a URI object indicating the destination of the cookies
- # being selected. Every cookie yielded should be good to send to
- # the given URI, i.e. cookie.valid_for_uri?(uri) evaluates to
- # true.
- #
- # If (and only if) this option is given, last access time of each
- # cookie is updated to the current time.
- def each(options = nil, &block)
+ # 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)
raise
self
end
include Enumerable
+
+ def empty?
+ raise
+ end
def clear
raise
self
end