lengarvey/reduceable — pull request #2 by hamin (2011-10-10 21:41:30+00:00)
Title: Added support for averages

Hey, I added support for averages. It's very simple but works just fine. Essentially I took your support for sum_of and mimicked it to make sure that the reduce function returns the average result (sum of results / # of results).

I would appreciate it if you could merge these changes in and provide a version bump on the gem as I will be using this on a current project of mine. I'd rather avoid pointing to git repos in my Gemfile if I can avoid it :)

Thanks again for your work, a very simple yet succinct solution :)