private Method

PreProcess.find_include_file(name)

Look for the given file in the directory containing the current file, and then in each of the directories specified in the RDOC_INCLUDE path

Source Code

# File rdoc/markup/simple_markup/preprocess.rb, line 62
def find_include_file(name)
  to_search = [ File.dirname(@input_file_name) ].concat @include_path
  to_search.each do |dir|
    full_name = File.join(dir, name)
    stat = File.stat(full_name) rescue next
    return full_name if stat.readable?
  end
  nil
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.