class ShardFile

Overview

Represents the structure of a shard.yml file. This class is used to parse the main project's metadata such as its name and version.

Included Modules

Defined in:

shard/shard_file.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]

Instance Method Detail

def authors : Array(String) | Nil #

[View source]
def dependencies : YAML::Any | Nil #

Dependency maps (name -> source details)


[View source]
def description : String | Nil #

Optional fields


[View source]
def dev_dependency_names : Set(String) #

Returns the set of dependency names declared as development dependencies.


[View source]
def development_dependencies : YAML::Any | Nil #

[View source]
def homepage : String | Nil #

[View source]
def license : String | Nil #

[View source]
def name : String #

The name of the project/shard.


[View source]
def repository : String | Nil #

[View source]
def version : String #

The version of the project/shard.


[View source]