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