Class: LessForm::Checkbox
- Defined in:
- lib/less-form/checkbox.rb
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
Methods inherited from Radio
Methods inherited from Element
#click, #displayed?, #flash, #initialize, #method_missing, #text, #valid_element?
Constructor Details
This class inherits a constructor from LessForm::Element
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class LessForm::Element
Instance Method Details
#clear ⇒ Object
12 13 14 |
# File 'lib/less-form/checkbox.rb', line 12 def clear set false end |
#set(what) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/less-form/checkbox.rb', line 4 def set what if what (set?)? nil : @element.click else (set?)? @element.click : nil end #if end |