class Array
add sum_me
to array, with or without name
Public Instance Methods
sum_me(name = nil)
click to toggle source
# File lib/guerrilla_patch/kernel.rb, line 54 def sum_me(name = nil) self.map(&name).reduce(0, :+) end