| Class | WWW::Mechanize::Form::Field |
| In: |
lib/www/mechanize/form/field.rb
|
| Parent: | Object |
This class represents a field in a form. It handles the following input tags found in a form: text, password, hidden, int, textarea
To set the value of a field, just use the value method: field.value = "foo"
| name | [RW] | |
| value | [RW] |
# File lib/www/mechanize/form/field.rb, line 13
13: def initialize(name, value)
14: @name = Mechanize.html_unescape(name)
15: @value = if value.is_a? String
16: Mechanize.html_unescape(value)
17: else
18: value
19: end
20: end