mechanize:Mechanize::Form::MultiSelectList#select_all

以下のような HTML で

<html>
<head>
<title>form test</title>
</head>
<body>

<form method="get" action="cgi/foo00.cgi" name="form1">
  <select name="select1">
    <option>1</option>
    <option>2</option>
  </select>
  <select name="select2" multiple>
    <option>foo</option>
    <option>bar</option>
  </select>
</form>

</body>
</html>
>> require 'mechanize'
=> true
>> agent = Mechanize.new
=> #<Mechanize:0xb74e1594 ...
>> page = agent.get('http://127.0.0.1:8080/test20_select.html')
=> #<Mechanize::Page
  ...
>> f = page.form('form1')
=> #<Mechanize::Form
  ...
>> f.fields[1].query_value
=> []
>> f.fields[1].select_all
=> [#<Mechanize::Form::Option:0xb74d391c @select_list=#<Mechanize::Form::MultiSelectList:0xb74d3bec @options=[...], @name="select2", @value=[], @node=#<Nokogiri::XML::Element:0x..fdba69e32 name="select" attributes=[#<Nokogiri::XML::Attr:0x..fdba6526a name="name" value="select2">, #<Nokogiri::XML::Attr:0x..fdba65260 name="multiple" value="multiple">] children=[#<Nokogiri::XML::Element:0x..fdba69cd4 name="option" children=[#<Nokogiri::XML::Text:0x..fdba640fe "foo">]>, #<Nokogiri::XML::Element:0x..fdba69ca2 name="option" children=[#<Nokogiri::XML::Text:0x..fdba63974 "bar">]>]>>, @selected=true, @text="foo", @value="foo">, #<Mechanize::Form::Option:0xb74d3868 @select_list=#<Mechanize::Form::MultiSelectList:0xb74d3bec @options=[...], @name="select2", @value=[], @node=#<Nokogiri::XML::Element:0x..fdba69e32 name="select" attributes=[#<Nokogiri::XML::Attr:0x..fdba6526a name="name" value="select2">, #<Nokogiri::XML::Attr:0x..fdba65260 name="multiple" value="multiple">] children=[#<Nokogiri::XML::Element:0x..fdba69cd4 name="option" children=[#<Nokogiri::XML::Text:0x..fdba640fe "foo">]>, #<Nokogiri::XML::Element:0x..fdba69ca2 name="option" children=[#<Nokogiri::XML::Text:0x..fdba63974 "bar">]>]>>, @selected=true, @text="bar", @value="bar">]
>> f.fields[1].query_value
=> [["select2", "foo"], ["select2", "bar"]]