Class: Mechanize::CookieJar
- Defined in:
- lib/ubiquitously/extensions/mechanize.rb
Instance Method Summary collapse
Instance Method Details
#jar=(hash) ⇒ Object
24 25 26 |
# File 'lib/ubiquitously/extensions/mechanize.rb', line 24 def jar=(hash) @jar = hash end |
#load_string(str) ⇒ Object
32 33 34 |
# File 'lib/ubiquitously/extensions/mechanize.rb', line 32 def load_string(str) @jar = YAML::load(str) end |
#save_string ⇒ Object
28 29 30 |
# File 'lib/ubiquitously/extensions/mechanize.rb', line 28 def save_string return YAML::dump(@jar) end |