lib/rack/amf/config.rb
# Attempt to expand +file+ to a full path by possibly adding an .rb
# extension and traversing the $LOAD_PATH looking for matches.
Attempt to expand +file+ to a full path by possibly adding an .rb
extension and traversing the $LOAD_PATH looking for matches.
Attempt to expand + file + to a full path by possibly adding an . rb extension and traversing the $LOAD_PATH looking for matches .
def locate_file_on_load_path(file)
      if file[0,1] == '/'
        file if File.exist?(file)
      else
        $LOAD_PATH.
          map { |base| File.join(base, file) }.
          detect { |p| File.exist?(p) }
      end
    end
def locate_file_on_load_path ( file ) if file [ 0 , 1 ] == '/' file if File . exist? ( file ) else $LOAD_PATH . map { | base | File . join ( base , file ) } . detect { | p | File . exist? ( p ) } end end
Attempt to expand +file+ to a full path by possibly adding an .rb
extension and traversing the $LOAD_PATH looking for matches.
Attempt to expand + file + to a full path by possibly adding an . rb extension and traversing the $LOAD_PATH looking for matches .
file
<not_specific>