class

Plombir::Build::Incremental::DependencyGraph

Inherits JSON::Serializable < Reference < Object

content path → PageRecord plus the inverted layout → [content paths] index, persisted as JSON.

Constructors

build(entries : Array(Pipeline::Entry), routes : Hash(String, Router::Route)) : DependencyGraph
Source
new(version : Int32 = CACHE_VERSION, pages : Hash(String, PageRecord) = {} of String => PageRecord, layouts : Hash(String, Array(String)) = {} of String => Array(String))
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

load(path : String) : DependencyGraph | Nil
Source

Instance methods

consumers(layout : String) : Array(String)
Source
layouts
Source
layouts=(layouts : Hash(String, Array(String)))
Source
pages
Source
pages=(pages : Hash(String, PageRecord))
Source
save(path : String) : Nil
Source
version
Source
version=(version : Int32)
Source