module EagleClaw::Browser

Add browsing capabilities to a class.

Public Instance Methods

agent() click to toggle source

This browser’s ‘Mechanize` agent.

@return [Mechanize]

@see mechanize.rubyforge.org/mechanize/

# File lib/eagleclaw/browser.rb, line 13
def agent
  @agent ||= Mechanize.new
end
method_missing(name, *args, &block) click to toggle source

If a non-existent method is called, pass it along to the ‘Mechanize` agent.

# File lib/eagleclaw/browser.rb, line 20
def method_missing(name, *args, &block)
  agent.send(name, *args, &block)
end