Class: Mechanize

Inherits:
Object
  • Object
show all
Defined in:
lib/saper/patches/mechanize.rb

Overview

Monkey patching Mechanize

  • allow custom pre_connect_hooks and post_connect_hooks

Instance Method Summary collapse

Instance Method Details

#post_connect_hook(&block) ⇒ Object


10
11
12
# File 'lib/saper/patches/mechanize.rb', line 10

def post_connect_hook(&block)
  @agent.post_connect_hook(&block)
end

#pre_connect_hook(&block) ⇒ Object


6
7
8
# File 'lib/saper/patches/mechanize.rb', line 6

def pre_connect_hook(&block)
  @agent.pre_connect_hook(&block)
end