module Mechanize::CookieJarIMethods

Public Instance Methods

add(arg1, arg2 = nil) click to toggle source
Calls superclass method
# File lib/mechanize/cookie_jar.rb, line 11
def add(arg1, arg2 = nil)
  if arg2
    __deprecated__ 'add and origin='
    super arg2.dup.tap { |ncookie|
      begin
        ncookie.origin = arg1
      rescue
        return nil
      end
    }
  else
    super arg1
  end
end
add!(cookie) click to toggle source

See HTTP::CookieJar#add.

# File lib/mechanize/cookie_jar.rb, line 27
def add!(cookie)
  __deprecated__ :add
  cookie.domain.nil? and raise NoMethodError, 'raised for compatibility'
  @store.add(cookie)
  self
end
clear!() click to toggle source

See HTTP::CookieJar#clear.

# File lib/mechanize/cookie_jar.rb, line 41
def clear!
  __deprecated__ :clear
  clear
end
dump_cookiestxt(io) click to toggle source

See HTTP::CookieJar#save.

# File lib/mechanize/cookie_jar.rb, line 59
def dump_cookiestxt(io)
  __deprecated__ :save
  save(io, :cookiestxt)
end
jar() click to toggle source

See HTTP::CookieJar#store.

# File lib/mechanize/cookie_jar.rb, line 47
def jar
  __deprecated__ :store
  @store.instance_variable_get(:@jar)
end
load_cookiestxt(io) click to toggle source

See HTTP::CookieJar#load.

# File lib/mechanize/cookie_jar.rb, line 53
def load_cookiestxt(io)
  __deprecated__ :load
  load(io, :cookiestxt)
end
save_as(filename, *options) click to toggle source

See HTTP::CookieJar#save.

# File lib/mechanize/cookie_jar.rb, line 35
def save_as(filename, *options)
  __deprecated__ :save
  save(filename, *options)
end