Module: Mechanize::CookieJarIMethods

### Home Classes Methods

### In Files

- lib/mechanize/cookie_jar.rb

### Methods

- #add
- #add!
- #clear!
- #dump_cookiestxt
- #jar
- #load_cookiestxt
- #save_as

### Included Modules

- Mechanize::CookieDeprecated

### Files

- EXAMPLES.rdoc
- GUIDE.rdoc
- LICENSE.rdoc
- Manifest.txt
- README.rdoc

### Class/Module Index

Quicksearch

- Mechanize
- Mechanize::ChunkedTerminationError
- Mechanize::ContentTypeError
- Mechanize::Cookie
- Mechanize::CookieCMethods
- Mechanize::CookieDeprecated
- Mechanize::CookieIMethods
- Mechanize::CookieJar
- Mechanize::CookieJarIMethods
- Mechanize::DirectorySaver
- Mechanize::Download
- Mechanize::ElementMatcher
- Mechanize::Error
- Mechanize::File
- Mechanize::FileConnection
- Mechanize::FileRequest
- Mechanize::FileResponse
- Mechanize::FileSaver
- Mechanize::Form
- Mechanize::Form::Button
- Mechanize::Form::CheckBox
- Mechanize::Form::Field
- Mechanize::Form::FileUpload
- Mechanize::Form::Hidden
- Mechanize::Form::ImageButton
- Mechanize::Form::Keygen
- Mechanize::Form::MultiSelectList
- Mechanize::Form::Option
- Mechanize::Form::RadioButton
- Mechanize::Form::Reset
- Mechanize::Form::SelectList
- Mechanize::Form::Submit
- Mechanize::Form::Text
- Mechanize::Form::Textarea
- Mechanize::HTTP
- Mechanize::HTTP::Agent
- Mechanize::HTTP::AuthChallenge
- Mechanize::HTTP::AuthRealm
- Mechanize::HTTP::AuthStore
- Mechanize::HTTP::ContentDispositionParser
- Mechanize::HTTP::WWWAuthenticateParser
- Mechanize::Headers
- Mechanize::History
- Mechanize::Image
- Mechanize::Page
- Mechanize::Page::Base
- Mechanize::Page::Frame
- Mechanize::Page::Image
- Mechanize::Page::Label
- Mechanize::Page::Link
- Mechanize::Page::MetaRefresh
- Mechanize::Parser
- Mechanize::PluggableParser
- Mechanize::Prependable
- Mechanize::RedirectLimitReachedError
- Mechanize::RedirectNotGetOrHeadError
- Mechanize::ResponseCodeError
- Mechanize::ResponseReadError
- Mechanize::RobotsDisallowedError
- Mechanize::TestCase
- Mechanize::UnauthorizedError
- Mechanize::UnsupportedSchemeError
- Mechanize::Util
- Mechanize::XmlFile
- HTTP
- HTTP::CookieJar

No matching classes.

# Mechanize::CookieJarIMethods

### Public Instance Methods

add(arg1, arg2 = nil) click to toggle source

    # 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.