class Compath::Finder

Public Instance Methods

files() click to toggle source
# File lib/compath/finder.rb, line 3
def files
  @files ||= begin
               files = `git ls-files -z`.split("\x0")
               files.map {|file| Pathname.new(file) }
             end
end
paths() click to toggle source
# File lib/compath/finder.rb, line 10
def paths
  files.each_with_object({}) do |file, hash|
    file.descend do |pathname|
      hash[pathname.to_path] = true
    end
  end
end