class Novika::Resolver::Manifest::Lib

Overview

Represents a library manifest.

Included Modules

Defined in:

novika/resolver.cr

Constant Summary

FILENAME = ".nk.lib"

Constructors

Class Method Summary

Instance Method Summary

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 library manifest.

path is a normalized path pointing to the manifest.


Class Method Detail

def self.find?(disk : Disk, path : Path, ancestor = nil) #

Creates and returns an library manifest object if path contains a library manifest, 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.