Method: Mechanize::Form::MultiSelectList#initialize
- Defined in:
- lib/mechanize/form/multi_select_list.rb
#initialize(node) ⇒ MultiSelectList
Returns a new instance of MultiSelectList.
20 21 22 23 24 25 26 27 |
# File 'lib/mechanize/form/multi_select_list.rb', line 20 def initialize node value = [] @options = node.search('option').map { |n| Mechanize::Form::Option.new(n, self) } super node, value end |