File: link.rb [mechanize-2.7.2 Documentation]

Last Modified
  2014-03-27 02:38:46 +0000
Requires

## Description

This class encapsulates links. It contains the text and the URI for 'a' tags parsed out of an HTML page. If the link contains an image, the alt text will be used for that image.

For example, the text for the following links with both be 'Hello World':

    <a href="http://example">Hello World</a>
    <a href="http://example"><img src="test.jpg" alt="Hello World"></a>