Class: Mechanize::Form::CheckBox
- Inherits:
-
RadioButton
- Object
- Field
- RadioButton
- Mechanize::Form::CheckBox
- Defined in:
- lib/mechanize/form/check_box.rb
Overview
This class represents a check box found in a Form. To activate the CheckBox in the Form, set the checked method to true.
Instance Attribute Summary
Attributes inherited from RadioButton
Attributes inherited from Field
Instance Method Summary collapse
Methods inherited from RadioButton
#[], #check, #click, #initialize, #label, #pretty_print_instance_variables, #text, #uncheck
Methods inherited from Field
#<=>, #dom_class, #dom_id, #initialize
Constructor Details
This class inherits a constructor from Mechanize::Form::RadioButton
Instance Method Details
#query_value ⇒ Object
7 8 9 |
# File 'lib/mechanize/form/check_box.rb', line 7 def query_value [[@name, @value || "on"]] end |