def scrape_ranks(info_page)
      rank_divs = info_page.parser.css('#ranks').children
      ranks = rank_divs.select { |div| div.children.size == 3 }
      ranks.map { |div| extract_rank(div) }
    end
def scrape_ranks(info_page)
      rank_divs = info_page.parser.css('#ranks').children
      ranks = rank_divs.select { |div| div.children.size == 3 }
      ranks.map { |div| extract_rank(div) }
    end
Scrapes the TF2R info page for available user ranks.

 See http://tf2r.com/info.html.

 @example
   p = s.fetch('http://tf2r.com/info.html')
   s.scrape_user(p) #=>
   [{:color=>"ebe2ca", :name=>"User",
     :description=>"Every new or existing user has this rank."}, ...]

 @param info_page [Mechanize::Page] the info page.
 @return [Array] contains Hashes representing each of the ranks.
   * :name (+String+) — the rank's name.
   * :description (+String+) — the rank's description.
   * :color (+String+) — the rank's hex color code.