Sha256: e9ecdbd071968ae728440ffdf0dec847c41bc9e6e5e2bd79ea0f7d5178d7fe1b

Contents?: true

Size: 384 Bytes

Versions: 15

Compression:

Stored size: 384 Bytes

Contents

module WWW
  class Mechanize
    class Chain
      class PreConnectHook
        include WWW::Handler

        attr_accessor :hooks
        def initialize
          @hooks = []
        end

        def handle(ctx, params)
          @hooks.each { |hook| hook.call(params) }
          super
        end
      end

      class PostConnectHook < PreConnectHook
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 5 rubygems

Version Path
eric-mechanize-0.9.3.20090623142847 lib/www/mechanize/chain/pre_connect_hook.rb
knu-mechanize-0.9.3.20090623142847 lib/www/mechanize/chain/pre_connect_hook.rb
tenderlove-mechanize-0.9.3.20090617085936 lib/www/mechanize/chain/pre_connect_hook.rb
tenderlove-mechanize-0.9.3.20090623142847 lib/www/mechanize/chain/pre_connect_hook.rb
mechanize-ntlm-0.9.1 lib/www/mechanize/chain/pre_connect_hook.rb
mechanize-0.8.0 lib/www/mechanize/chain/pre_connect_hook.rb
mechanize-0.8.4 lib/www/mechanize/chain/pre_connect_hook.rb
mechanize-0.8.3 lib/www/mechanize/chain/pre_connect_hook.rb
mechanize-0.8.1 lib/www/mechanize/chain/pre_connect_hook.rb
mechanize-0.8.2 lib/www/mechanize/chain/pre_connect_hook.rb
mechanize-0.9.3 lib/www/mechanize/chain/pre_connect_hook.rb
mechanize-0.9.0 lib/www/mechanize/chain/pre_connect_hook.rb
mechanize-0.9.2 lib/www/mechanize/chain/pre_connect_hook.rb
mechanize-0.9.1 lib/www/mechanize/chain/pre_connect_hook.rb
mechanize-0.8.5 lib/www/mechanize/chain/pre_connect_hook.rb