module REXML::Parsers::EnumerableTally
Public Instance Methods
tally()
click to toggle source
# File rexml-3.3.6/lib/rexml/parsers/baseparser.rb, line 14 def tally counts = {} each do |item| counts[item] ||= 0 counts[item] += 1 end counts end