Class: Mechanize::CookieJar

Inherits:
Object
  • Object
show all
Defined in:
lib/monkey-patches/mechanize-patches.rb

Overview

we check after response and it may be the last response we need it to clear here.

Instance Method Summary collapse

Instance Method Details

#add(uri, cookie) ⇒ Object



7
8
9
10
# File 'lib/monkey-patches/mechanize-patches.rb', line 7

def add(uri, cookie)
  cleanup
  old_add(uri, cookie)
end

#old_addObject



6
# File 'lib/monkey-patches/mechanize-patches.rb', line 6

alias_method :old_add, :add