# File lib/ramaze/helper/formatting.rb, line 193 def tagcloud(tags, min = 0.5, max = 1.5) result = {} total = tags.size.to_f diff = max - min tags.uniq.each do |tag| count = tags.respond_to?(:count) ? tags.count(tag) : tags.select{|t| t==tag }.size result[tag] = ((count / total) * diff) + min end result end