Module: Mechanize::CookieCMethods

Includes:
CookieDeprecated
Included in:
Cookie
Defined in:
lib/mechanize/cookie.rb

Instance Method Summary collapse

Instance Method Details

#parse(arg1, arg2, arg3 = nil, &block) ⇒ Object



32
33
34
35
36
37
38
39
40
# File 'lib/mechanize/cookie.rb', line 32

def parse(arg1, arg2, arg3 = nil, &block)
  if arg1.is_a?(URI)
    __deprecated__
    return [] if arg2.nil?
    super(arg2, arg1, { :logger => arg3 })
  else
    super
  end
end