vendor/laravel-frontend-presets/argon/src/argon-stubs/resources/assets/vendor/jekyll/lib/jekyll/regenerator.rb
# Checks if a path's (or one of its dependencies)
# mtime has changed
#
# Returns a boolean.
Checks if a path's (or one of its dependencies)
mtime has changed

Returns a boolean.
Checks if a path ' s ( or one of its dependencies ) mtime has changed Returns a boolean .
def modified?(path)
      return true if disabled?
      if cache.has_key? path
        return cache[path]
      end
      data = metadata[path]
      if data
        data["deps"].each do |dependency|
          if modified?(dependency)
            return cache[dependency] = cache[path] = true
          end
        end
        if data["mtime"].eql? File.mtime(path)
          return cache[path] = false
        else
          return add(path)
        end
      end
      return add(path)
    end
def modified? ( path ) return true if disabled? if cache . has_key? path return cache [ path ] end data = metadata [ path ] if data data [ "deps" ] . each do | dependency | if modified? ( dependency ) return cache [ dependency ] = cache [ path ] = true end end if data [ "mtime" ] . eql? File . mtime ( path ) return cache [ path ] = false else return add ( path ) end end return add ( path ) end
Checks if a path's (or one of its dependencies)
mtime has changed
Checks if a path ' s ( or one of its dependencies ) mtime has changed
# Check for path in cache # Check path that exists in metadata # Path does not exist in metadata, add it
path