# File benchmarks/comparison.rb, line 62 def best element items = {} color_index = 0 element.elements.each( "TD" ) do |elem| items[elem.text.split[0].to_f] = elem if elem.text =~ /^\d/ end items.keys.sort.reverse.each do |key| items[key].attributes["BGCOLOR"] = "##{COLORS[color_index]}" color_index+=1 end end