| Class | WWW::Mechanize::RadioButton |
| In: |
lib/mechanize/form_elements.rb
|
| Parent: | Field |
This class represents a radio button found in a Form. To activate the RadioButton in the Form, set the checked method to true.
| checked | [RW] |
# File lib/mechanize/form_elements.rb, line 72
72: def initialize(name, value, checked, form)
73: @checked = checked
74: @form = form
75: super(name, value)
76: end
# File lib/mechanize/form_elements.rb, line 78
78: def check
79: uncheck_peers
80: @checked = true
81: end