Parent

Methods

Mechanize::Chain

Attributes

http[RW]

Public Class Methods

new(list, http = nil) click to toggle source
# File lib/mechanize/chain.rb, line 20
def initialize(list, http = nil)
  @http = http
  @list = list
  @list.each { |l| l.chain = self }
end

Public Instance Methods

handle(request) click to toggle source
# File lib/mechanize/chain.rb, line 26
def handle(request)
  @list.first.handle(self, request)
end
pass(obj, request) click to toggle source
# File lib/mechanize/chain.rb, line 30
def pass(obj, request)
  next_link = @list[@list.index(obj) + 1]
  next_link.handle(self, request) if next_link
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.