class Array Public Instance Methods cumulative_sum () toggle source # File _plugins/jekyll-topic-filter.rb, line 10 def cumulative_sum sum = 0 self.map{|x| sum += x} end