模块 REXML::Parsers::EnumerableTally
公共实例方法
tally() 点击以切换源代码
# File rexml-3.4.0/lib/rexml/parsers/baseparser.rb, line 14 def tally counts = {} each do |item| counts[item] ||= 0 counts[item] += 1 end counts end