Tag Archives: Inject

Ruby Inject

As part of my code every day challenge, today I am taking a look at the Ruby Inject method.  I never really understood how the Ruby inject method worked and why one might use it. The  Ruby inject method is useful for aggregating data.  For example a summation could be done with inject (by aggregating […]

Leave a comment Continue Reading →