          # File lib/rake.rb, line 2092
    2092:     def have_rakefile
    2093:       @rakefiles.each do |fn|
    2094:         if File.exist?(fn)
    2095:           others = Dir.glob(fn, File::FNM_CASEFOLD)
    2096:           return others.size == 1 ? others.first : fn
    2097:         elsif fn == ''
    2098:           return fn
    2099:         end
    2100:       end
    2101:       return nil
    2102:     end