module Trusty::Utilities::PathFinder::ClassMethods
Public Instance Methods
find(filename, paths = [])
click to toggle source
# File lib/trusty/utilities/path_finder.rb, line 5 def find(filename, paths = []) if File.file?(filename) filename elsif root = Array(paths).find{|path| File.file?(File.join(path, filename))} File.join(root, filename) end end