title: Parse html page with mechanize to receive the appropriate array
body: <p>I have the following html code on the page received by mechanize (agent.get):
  </p>
  
  <pre><code>&lt;div class="b-resumehistorylist-views"&gt;
  
  &lt;!-- first date start--&gt;
  
  &lt;div class="b-resumehistory-date"&gt;date1&lt;/div&gt;
  
  &lt;div class="b-resumehistory-company"&gt;
  &lt;div class="b-resumehistory-time"&gt;time1&lt;/div&gt;
  &lt;a href="company_lynk1"&gt;company1&lt;/a&gt;&lt;/div&gt;
  
  
  &lt;!-- second date start --&gt;
  
  &lt;div class="b-resumehistory-date"&gt;date2&lt;/div&gt;
  
  &lt;div class="b-resumehistory-company"&gt;
  &lt;div class="b-resumehistory-time"&gt;time2&lt;/div&gt;
  &lt;a href="company_lynk2"&gt;company2&lt;/a&gt;
  &lt;/div&gt;
  
  &lt;div class="b-resumehistory-company"&gt;
  &lt;div class="b-resumehistory-time"&gt;time3&lt;/div&gt;
  &lt;a href="company_lynk3"&gt;company3&lt;/a&gt;&lt;/div&gt;
  
  &lt;div class="b-resumehistory-company"&gt;
  &lt;div class="b-resumehistory-time"&gt;time4&lt;/div&gt;
  &lt;a href="company_lynk4"&gt;company4&lt;/a&gt;&lt;/div&gt;
  
  &lt;div class="b-resumehistory-company"&gt;
  &lt;div class="b-resumehistory-time"&gt;time5&lt;/div&gt;
  &lt;a href="company_lynk5"&gt;company5&lt;/a&gt;&lt;/div&gt;
  
  &lt;div class="b-resumehistory-company"&gt;
  &lt;div class="b-resumehistory-time"&gt;time6&lt;/div&gt;
  &lt;a href="company_lynk6"&gt;company6&lt;/a&gt;&lt;/div&gt;
  
  &lt;div class="b-resumehistory-company"&gt;
  &lt;div class="b-resumehistory-time"&gt;time7&lt;/div&gt;
  &lt;a href="company_lynk7"&gt;company7&lt;/a&gt;&lt;/div&gt;
  
  ...
  
  &lt;/div&gt;
  </code></pre>
  
  <p>I need to search inside the div with class="b-resumehistorylist-views" each date.
  Then find all divs between two div-dates and link each item to this particular date.</p>
  
  <p>The problem is that each item (div class = b-resumehistorylist-views) is not inside div=b-resumehistorylist-views.</p>
  
  <p>At final stage I need to receive the following array:
  <code>array = [ [date1, time1, company1, companylink1], [date2, time2, company2, companylink2], [date2, time3, company3, companylink3],[date2, time4, company4, companylink4] ]</code></p>
  
  <p>I know that I must use method search with text() option, but I cannot find the solution.
  My code right now can parse all companies information between div class=b-resumehistory-company, but I need to find right date.</p>