Class: LessForm::Radio

Inherits:
Element show all
Defined in:
lib/less-form/radio.rb

Direct Known Subclasses

Checkbox

Instance Attribute Summary

Attributes inherited from Element

#element

Instance Method Summary collapse

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

#setObject



8
9
10
# File 'lib/less-form/radio.rb', line 8

def set
	@element.click
end

#set?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/less-form/radio.rb', line 4

def set?
	@element.selected?
end