lib/mizuno/reloader.rb
def find(file, paths)
            if(Pathname.new(file).absolute?)
                return unless (timestamp = mtime(file))
                @logger.debug("Found #{file}")
                [ file, timestamp ]
            else
                paths.each do |path|
                    fullpath = File.expand_path((File.join(path, file)))
                    next unless (timestamp = mtime(fullpath))
                    @logger.debug("Found #{file} in #{fullpath}")
                    return([ fullpath, timestamp ])
                end
                return(nil)
            end
        end
def find(file, paths)
            if(Pathname.new(file).absolute?)
                return unless (timestamp = mtime(file))
                @logger.debug("Found #{file}")
                [ file, timestamp ]
            else
                paths.each do |path|
                    fullpath = File.expand_path((File.join(path, file)))
                    next unless (timestamp = mtime(fullpath))
                    @logger.debug("Found #{file} in #{fullpath}")
                    return([ fullpath, timestamp ])
                end
                return(nil)
            end
        end
def find ( file , paths ) if ( Pathname . new ( file ) . absolute? ) return unless ( timestamp = mtime ( file ) ) @logger . debug ( "Found #{file}" ) [ file , timestamp ] else paths . each do | path | fullpath = File . expand_path ( ( File . join ( path , file ) ) ) next unless ( timestamp = mtime ( fullpath ) ) @logger . debug ( "Found #{file} in #{fullpath}" ) return ( [ fullpath , timestamp ] ) end return ( nil ) end end
Takes a relative or absolute +file+ name, a couple possible
 +paths+ that the +file+ might reside in. Returns a tuple of
 the full path where the file was found and its modification
 time, or nil if not found.
Takes a relative or absolute + file + name a couple possible + paths + that the + file + might reside in . Returns a tuple of the full path where the file was found and its modification time or nil if not found .