Class | WWW::Mechanize::Form::RadioButton |
In: |
lib/www/mechanize/form/radio_button.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/www/mechanize/form/radio_button.rb, line 9 9: def initialize(name, value, checked, form) 10: @checked = checked 11: @form = form 12: super(name, value) 13: end
# File lib/www/mechanize/form/radio_button.rb, line 15 15: def check 16: uncheck_peers 17: @checked = true 18: end
# File lib/www/mechanize/form/radio_button.rb, line 24 24: def click 25: @checked = !@checked 26: end