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“
# File lib/mechanize/form/field.rb, line 12 12: def initialize node, value = node['value'] 13: @node = node 14: @name = Util.html_unescape(node['name']) 15: @value = if value.is_a? String 16: Util.html_unescape(value) 17: else 18: value 19: end 20: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.