class WWW::Mechanize::Form::RadioButton
RadioButton in the Form, set the checked method to true.
This class represents a radio button found in a Form. To activate the
def check
def check uncheck_peers @checked = true end
def click
def click @checked = !@checked end
def initialize(name, value, checked, form)
def initialize(name, value, checked, form) @checked = checked @form = form super(name, value) end
def pretty_print_instance_variables
def pretty_print_instance_variables [:@checked, :@name, :@value] end
def uncheck
def uncheck @checked = false end
def uncheck_peers
def uncheck_peers @form.radiobuttons.name(name).each do |b| next if b.value == value b.uncheck end end