Sha256: 25cb2ee78caccee972dbdbb56e32648710c7c094c4d221ae17de8312fb399dc5
Contents?: true
Size: 254 Bytes
Versions: 218
Compression:
Stored size: 254 Bytes
Contents
require "pathname" module Standard class FileFinder def call(name, search_path) Pathname.new(search_path).expand_path.ascend do |path| if (file = path + name).exist? return file.to_s end end end end end
Version data entries
218 entries across 218 versions & 5 rubygems