Parent

Methods

Class Index [+]

Quicksearch

Webgen::Source::FileSystem::Path

A special Webgen::Path class for handling with file system paths.

Public Class Methods

new(path, fs_path) click to toggle source

Create a new object with absolute path path for the file system path fs_path.

    # File lib/webgen/source/filesystem.rb, line 16
16:       def initialize(path, fs_path)
17:         super(path) {|mode| File.open(fs_path, mode) }
18:         @fs_path = fs_path
19:         WebsiteAccess.website.cache[[:fs_path, @fs_path]] = File.mtime(@fs_path)
20:         @meta_info['modified_at'] = File.mtime(@fs_path)
21:       end

Public Instance Methods

changed?() click to toggle source

Return true if the file system path used by the object has been modified.

    # File lib/webgen/source/filesystem.rb, line 24
24:       def changed?
25:         data = WebsiteAccess.website.cache[[:fs_path, @fs_path]]
26:         File.mtime(@fs_path) > data
27:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.