Only patches the array with a sum method if none is present

e. g. Rails already provides this. In Ruby 2.0 one should use a refinement.