Class | WWW::Mechanize::Page |
In: |
lib/mechanize/page.rb
|
Parent: | File |
This class encapsulates an HTML page. If Mechanize finds a content type of ‘text/html’, this class will be instantiated and returned.
require 'rubygems' require 'mechanize' agent = WWW::Mechanize.new agent.get('http://google.com/').class #=> WWW::Mechanize::Page