Class: Mechanize

Inherits:
Object
  • Object
show all
Defined in:
lib/lib/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/lib/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/lib/mechanize.rb', line 6

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