File: //opt/alt/ruby32/share/gems/doc/http-cookie-1.1.0/ri/HTTP/CookieJar/add-i.ri
U:RDoc::AnyMethod[iI"add:ETI"HTTP::CookieJar#add;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"�Adds a cookie to the jar if it is acceptable, and returns self in
any case. A given cookie must have domain and path attributes
set, or ArgumentError is raised.;To;
; [I"�Whether a cookie with the <code>for_domain</code> flag on overwrites another
with the flag off or vice versa depends on the store used. See
individual store classes for that matter.;TS:RDoc::Markup::Heading:
leveli: textI"3Compatibility Note for Mechanize::Cookie users;To;
; [I"<In HTTP::Cookie, each cookie object can store its origin URI
(cf. #origin). While the origin URI of a cookie can be set
manually by #origin=, one is typically given in its generation.
To be more specific, HTTP::Cookie.new takes an <code>:origin</code> option
and HTTP::Cookie.parse takes one via the second argument.;To:RDoc::Markup::Verbatim; [I" # Mechanize::Cookie
;TI" jar.add(origin, cookie)
;TI"> jar.add!(cookie) # no acceptance check is performed
;TI"
;TI" # HTTP::Cookie
;TI" jar.origin = origin
;TI"; jar.add(cookie) # acceptance check is performed
;T:@format0:
@fileI"lib/http/cookie_jar.rb;T:0@omit_headings_from_table_of_contents_below000[[I"<<;To;; [ ;@;0I"
(cookie);T@FI"CookieJar;TcRDoc::NormalClass00