Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't define Array#sum if already defined. Fixes #58
Recent versions of ActiveSupport and Ruby 2.4.1 have added a #sum method to the Enumerable class. Their implementation also accepts a block, which the version included with StatSample does not. This change tests to see if Array#sum is already defined before patching. This fixes issue #58 #58
- Loading branch information