module PathList::Finder
Attributes
find_ext[RW]
Public Instance Methods
find(filename, use_ext=true)
click to toggle source
# File lib/more/facets/pathlist.rb, line 71 def find(filename, use_ext=true) filename += '.' + @find_ext if @find_ext and use_ext to_a.each do |path| filepath = File.join(path, filename) return filepath if File.exist?( filepath ) end return nil end
Also aliased as: include?