class Mechanize::Chain::PreConnectHook

Attributes

hooks[RW]

Public Class Methods

new() click to toggle source
# File lib/mechanize/chain/pre_connect_hook.rb, line 7
def initialize
  @hooks = []
end

Public Instance Methods

handle(ctx, params) click to toggle source
# File lib/mechanize/chain/pre_connect_hook.rb, line 11
def handle(ctx, params)
  @hooks.each { |hook| hook.call(params) }
  super
end