Class: Assonnato::CookieJar
- Inherits:
-
Object
- Object
- Assonnato::CookieJar
- Defined in:
- lib/assonnato/cookie_jar.rb
Instance Method Summary collapse
- #<<(cookie) ⇒ Object (also: #append)
- #get ⇒ Object (also: #to_s)
-
#initialize ⇒ CookieJar
constructor
A new instance of CookieJar.
- #set(cookie) ⇒ Object
Constructor Details
#initialize ⇒ CookieJar
Returns a new instance of CookieJar.
11 12 13 |
# File 'lib/assonnato/cookie_jar.rb', line 11 def initialize @cookies = '' end |
Instance Method Details
#<<(cookie) ⇒ Object Also known as: append
23 24 25 |
# File 'lib/assonnato/cookie_jar.rb', line 23 def <<() @cookies << "; #{}" end |
#get ⇒ Object Also known as: to_s
19 20 21 |
# File 'lib/assonnato/cookie_jar.rb', line 19 def get @cookies end |
#set(cookie) ⇒ Object
15 16 17 |
# File 'lib/assonnato/cookie_jar.rb', line 15 def set() @cookies = end |