lib/allocation_stats/allocations_proxy.rb
# Apply all transformations to the contained list of Allocations. This is
# aliased as `:all`.
Apply all transformations to the contained list of Allocations. This is
aliased as `:all`.
Apply all transformations to the contained list of Allocations . This is aliased as ` : all ` .
def to_a
      results = @allocations
      @wheres.each do |where|
        results = where.call(results)
      end
      results = @group_by.call(results) if @group_by
      @mappers.each do |mapper|
        results = mapper.call(results)
      end
      results
    end
def to_a results = @allocations @wheres . each do | where | results = where . call ( results ) end results = @group_by . call ( results ) if @group_by @mappers . each do | mapper | results = mapper . call ( results ) end results end
Apply all transformations to the contained list of Allocations.
Apply all transformations to the contained list of Allocations .
# First apply group_by # Apply each mapper