Parent

Methods

Class Index [+]

Quicksearch

Webgen::Source::TarArchive::Path

A special Webgen::Path class for handling paths from a tar archive.

Public Class Methods

new(path, data, mtime, uri) click to toggle source

Create a new tar archive path object for the entry entry.

    # File lib/webgen/source/tararchive.rb, line 30
30:       def initialize(path, data, mtime, uri)
31:         super(path) {|mode| StringIO.new(data.to_s, mode) }
32:         @uri = uri
33:         @mtime = mtime
34:         WebsiteAccess.website.cache[[:tararchive_path, @uri, path]] = @mtime if WebsiteAccess.website
35:         @meta_info['modified_at'] = @mtime
36:       end

Public Instance Methods

changed?() click to toggle source

Return true if the tar archive path used by the object has been modified.

    # File lib/webgen/source/tararchive.rb, line 39
39:       def changed?
40:         !WebsiteAccess.website || @mtime > WebsiteAccess.website.cache[[:tararchive_path, @uri, path]]
41:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.