Class WWW::Mechanize::Page
In: lib/www/mechanize/page.rb
lib/www/mechanize/page/link.rb
lib/www/mechanize/page/frame.rb
lib/www/mechanize/page/meta.rb
lib/www/mechanize/page/base.rb
lib/www/mechanize/monkey_patch.rb
Parent: WWW::Mechanize::File

Synopsis

This class encapsulates an HTML page. If Mechanize finds a content type of ‘text/html’, this class will be instantiated and returned.

Example

 require 'rubygems'
 require 'mechanize'

 agent = WWW::Mechanize.new
 agent.get('http://google.com/').class  #=> WWW::Mechanize::Page

Methods

bases   content_type   forms   frames   iframes   links   meta   new   parser   root   title  

Classes and Modules

Class WWW::Mechanize::Page::Base
Class WWW::Mechanize::Page::Frame
Class WWW::Mechanize::Page::Link
Class WWW::Mechanize::Page::Meta

External Aliases

pretty_inspect -> inspect

Attributes

encoding  [RW] 
mech  [RW] 

Public Class methods

Public Instance methods

Get the content type

root()

Alias for parser

[Validate]