Class: Webrat::MultipleSelectField
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Field
Attributes inherited from Element
Class Method Summary (collapse)
Instance Method Summary (collapse)
Methods inherited from Field
#disabled?, field_class, field_classes, #id, inherited, #initialize, #label_text, load, #raise_error_if_disabled, #to_query_string, xpath_search_excluding_hidden
Methods inherited from Element
#initialize, #inspect, load, load_all, #path
Constructor Details
This class inherits a constructor from Webrat::Field
Class Method Details
+ (Object) xpath_search
407 408 409 |
# File 'lib/webrat/core/elements/field.rb', line 407 def self.xpath_search [".//select[@multiple='multiple']"] end |
Instance Method Details
- (Object) options
411 412 413 |
# File 'lib/webrat/core/elements/field.rb', line 411 def @options ||= SelectOption.load_all(@session, @element) end |
- (Object) set(value)
415 416 417 |
# File 'lib/webrat/core/elements/field.rb', line 415 def set(value) @value << value end |
- (Object) unset(value)
419 420 421 |
# File 'lib/webrat/core/elements/field.rb', line 419 def unset(value) @value.delete(value) end |