lib/allocation_stats/allocations_proxy.rb
# Select allocations for which the {Allocation#sourcefile sourcefile}
# includes the present working directory.
#
# `#from_pwd` can be called multiple times, adding to `@wheres`. See
# documentation for {AllocationsProxy} for more information about chaining.
Select allocations for which the {Allocation#sourcefile sourcefile}
includes the present working directory.

`#from_pwd` can be called multiple times, adding to `@wheres`. See
documentation for {AllocationsProxy} for more information about chaining.
Select allocations for which the { Allocation#sourcefile sourcefile } includes the present working directory . ` #from_pwd ` can be called multiple times adding to ` @wheres ` . See documentation for { AllocationsProxy } for more information about chaining .
def from_pwd
      @wheres << Proc.new do |allocations|
        allocations.select { |allocation| allocation.sourcefile[@pwd] }
      end
      self
    end
def from_pwd @wheres << Proc . new do | allocations | allocations . select { | allocation | allocation . sourcefile [ @pwd ] } end self end
Select allocations for which the {Allocation#sourcefile sourcefile}
includes the present working directory.
Select allocations for which the { Allocation#sourcefile sourcefile } includes the present working directory .