class AllocationStats::AllocationsProxy
def attribute_getters(faux_attributes)
def attribute_getters(faux_attributes) faux_attributes.map do |faux| if faux == :sourcefile lambda { |allocation| allocation.sourcefile(@alias_paths) } elsif Allocation::HELPERS.include?(faux) || Allocation::ATTRIBUTES.include?(faux) lambda { |allocation| allocation.__send__(faux) } else lambda { |allocation| allocation.object.__send__(faux) } end end end