Methods

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
71:     def find(filename, use_ext=true)
72:       filename += '.' + @find_ext if @find_ext and use_ext
73:       to_a.each do |path|
74:         filepath = File.join(path, filename)
75:         return filepath if File.exist?( filepath )
76:       end
77:       return nil
78:     end
Also aliased as: include?
include?(filename, use_ext=true) click to toggle source
Alias for: find

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.