lib/rdoc/markup/preprocess.rb in rdoc-2.5 vs lib/rdoc/markup/preprocess.rb in rdoc-2.5.1

- old
+ new

@@ -65,10 +65,10 @@ ## # 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 def find_include_file(name) - to_search = [ File.dirname(@input_file_name) ].concat @include_path + 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