class Novika::Resolver::Manifest::App
- Novika::Resolver::Manifest::App
- Reference
- Object
Overview
Represents an application manifest.
Included Modules
Defined in:
novika/resolver.crConstant Summary
-
FILENAME =
".nk.app"
Constructors
-
.new(path : Path, ancestor : Novika::Resolver::Runnable::Ancestor | Nil)
Creates a new application manifest.
Class Method Summary
-
.find?(disk : Disk, path : Path, ancestor = nil)
Creates and returns an application manifest object if path contains an application manifest.
Instance Method Summary
-
#ancestor? : Runnable::Ancestor | Nil
Returns the ancestor of this object, or nil if there is no ancestor.
-
#layout(container : RunnableContainer, group : RunnableGroup)
Populates container with runnables from group according to this manifest's default layout.
Instance methods inherited from module Novika::Resolver::Manifest::Present
directory
directory,
on_preamble(root : RunnableRoot, group : RunnableGroup, preamble : String)
on_preamble,
populate(root : RunnableRoot, container : RunnableContainer, origin : RunnableGroup)
populate,
to_s(io)
to_s
Instance methods inherited from module Novika::Resolver::Runnable::Ancestor
ancestor? : Ancestor | Nil
ancestor?
Instance methods inherited from module Novika::Resolver::Manifest
layout(container : RunnableContainer, group : RunnableGroup)
layout,
populate(root : RunnableRoot, container : RunnableContainer, origin : RunnableGroup)
populate
Constructor methods inherited from module Novika::Resolver::Manifest
find(disk : Disk, path : Path, ancestor = nil) : Manifest
find
Constructor Detail
def self.new(path : Path, ancestor : Novika::Resolver::Runnable::Ancestor | Nil)
#
Creates a new application manifest.
path is a normalized path pointing to the manifest.
Class Method Detail
Creates and returns an application manifest object if path contains an application manifest. Otherwise, returns nil.
Instance Method Detail
def ancestor? : Runnable::Ancestor | Nil
#
Description copied from module Novika::Resolver::Runnable::Ancestor
Returns the ancestor of this object, or nil if there is no ancestor.
Description copied from module Novika::Resolver::Manifest
Populates container with runnables from group according to this manifest's default layout.
- For application manifests, it's
* ** entry.nk
. - For library manifests and directories with no manifest, it's
entry.nk * **
.