method
sum
sum( nodes )
public
Hide source
# File lib/rexml/functions.rb, line 364 def Functions::sum( nodes ) nodes = [nodes] unless nodes.kind_of? Array nodes.inject(0) { |r,n| r += number(string(n)) } end