Method: Ldpath::Functions#sum
- Defined in:
- lib/ldpath/functions.rb
#sum(_uri, _context, *args) ⇒ Object
118 119 120 |
# File 'lib/ldpath/functions.rb', line 118 def sum(_uri, _context, *args) args.inject(0) { |acc, elem| acc + elem } end |