vendor/laravel-frontend-presets/argon/src/argon-stubs/resources/assets/vendor/jekyll/lib/jekyll/regenerator.rb
# Checks if a renderable object needs to be regenerated
#
# Returns a boolean.
Checks if a renderable object needs to be regenerated
Returns a boolean.
Checks if a renderable object needs to be regenerated Returns a boolean .
def regenerate?(document)
      case document
      when Post, Page
        document.asset_file? || document.data['regenerate'] ||
          modified?(site.in_source_dir(document.relative_path))
      when Document
        !document.write? || document.data['regenerate'] || modified?(document.path)
      else
        if document.respond_to?(:path)
          modified?(document.path)
        else
          true
        end
      end
    end
def regenerate? ( document ) case document when Post , Page document . asset_file? || document . data [ 'regenerate' ] || modified? ( site . in_source_dir ( document . relative_path ) ) when Document ! document . write? || document . data [ 'regenerate' ] || modified? ( document . path ) else if document . respond_to? ( :path ) modified? ( document . path ) else true end end end
Checks if a renderable object needs to be regenerated
Returns a boolean.
Checks if a renderable object needs to be regenerated Returns a boolean .
document