lib/webby/resources/partial.rb
# call-seq:
#    dirty?    => true or false
#
# Returns +true+ if this resource is newer than its corresponding output
# product. The resource needs to be rendered (if a page or layout) or
# copied (if a static file) to the output directory.
#
call-seq:
dirty.    => true or false

Returns +true+ if this resource is newer than its corresponding output
product. The resource needs to be rendered (if a page or layout) or
copied (if a static file) to the output directory.
call - seq : dirty . = > true or false Returns + true + if this resource is newer than its corresponding output product . The resource needs to be rendered ( if a page or layout ) or copied ( if a static file ) to the output directory .
def dirty?
    return @mdata['dirty'] if @mdata.has_key? 'dirty'
    return true unless test(?e, destination)
    dirty = @mtime > ::File.mtime(destination)
    return dirty if dirty
    false
  end
def dirty? return @mdata [ 'dirty' ] if @mdata . has_key? 'dirty' return true unless test ( ?e , destination ) dirty = @mtime > :: File . mtime ( destination ) return dirty if dirty false end
call-seq:
dirty?
call - seq : dirty?
# if the destination file does not exist, then we are dirty # if this file's mtime is larger than the destination file's # mtime, then we are dirty # if we got here, then we are not dirty