Method: Mechanize::Form::SelectList#initialize
- Defined in:
- lib/mechanize/form/select_list.rb
permalink #initialize(node) ⇒ SelectList
Returns a new instance of SelectList.
12 13 14 15 16 17 18 19 |
# File 'lib/mechanize/form/select_list.rb', line 12 def initialize node super if .length > 1 .reverse[1...length].each do |o| o.unselect end end end |