Parent

Methods

Mechanize::Page::Label

A form label on an HTML page

Attributes

node[R]
text[R]
page[R]

Public Class Methods

new(node, page) click to toggle source
    # File lib/mechanize/page/label.rb, line 10
10:   def initialize(node, page)
11:     @node = node
12:     @text = node.inner_text
13:     @page = page
14:   end

Public Instance Methods

for() click to toggle source
    # File lib/mechanize/page/label.rb, line 16
16:   def for
17:     (id = @node['for']) && page.search("##{id}") || nil
18:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.