Class | Mechanize::Page |
In: |
lib/mechanize/page.rb
|
Parent: | Mechanize::File |
This class encapsulates an HTML page. If Mechanize finds a content type of ‘text/html’, this class will be instantiated and returned.
Example:
require 'mechanize' agent = Mechanize.new agent.get('http://google.com/').class # => Mechanize::Page
DEFAULT_RESPONSE | = | { 'content-type' => 'text/html', }.freeze |
pretty_inspect | -> | inspect |
search | -> | / |
charset | -> | charset_from_content_type |
encodings | [R] | Possible encodings for this page based on HTTP headers and meta elements |
mech | [RW] |