class LessForm::Select
Public Class Methods
new(element)
click to toggle source
Calls superclass method
LessForm::Element::new
# File lib/less-form/select.rb, line 3 def initialize element super @options = Options.new(element) end
Public Instance Methods
options()
click to toggle source
# File lib/less-form/select.rb, line 8 def options @options.all end
select(text)
click to toggle source
# File lib/less-form/select.rb, line 20 def select text select_by_text text end
select_by_text(text)
click to toggle source
# File lib/less-form/select.rb, line 16 def select_by_text text @options.by_text(text).click end
select_by_value(value)
click to toggle source
# File lib/less-form/select.rb, line 12 def select_by_value(value) @options.by_value(value).click end
selected()
click to toggle source
# File lib/less-form/select.rb, line 24 def selected @options.selected end