Class: Mechanize::HTTP::Agent

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

Instance Method Summary collapse

Instance Method Details

#post_connect_hook(&block) ⇒ Object


22
23
24
# File 'lib/saper/patches/mechanize.rb', line 22

def post_connect_hook(&block)
  @post_connect_hooks << block
end

#pre_connect_hook(&block) ⇒ Object


18
19
20
# File 'lib/saper/patches/mechanize.rb', line 18

def pre_connect_hook(&block)
  @pre_connect_hooks << block
end