Search a file in all load_paths, starting from last to first, so last takes precedence over first.
# File lib/forgery/file_reader.rb, line 29 def self.find_file(name, folder) Forgery.load_paths.reverse.each do |path| file = "#{path}/#{folder}/#{name}" return file if File.exists?(file) end end
Generated with the Darkfish Rdoc Generator 2.