Method: Array#sum

Defined in:
lib/easystats.rb

#sumObject

take in an array of numbers and calculate the sum



114
115
116
# File 'lib/easystats.rb', line 114

def sum
  self.reduce { |total, number| total + number }
end