ShardFile
Inherits YAML::Serializable / Reference / Object
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.
Constructors
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceInstance methods
authors
Sourcedev_dependency_names
Returns the set of dependency names declared as development dependencies.
development_dependencies
Sourcehomepage
Sourcelicense
Sourcerepository
Sourceruntime_dependency_names
Returns the set of dependency names declared as runtime dependencies.
targets
Build targets (name -> {main: ...}). Their presence is what distinguishes an application shard from a library one.
version
The version of the project/shard. Optional because a shard.yml may omit it
(e.g. an application that is never published), in which case it stays nil and
the generated component simply carries no version — which is what
CycloneDX means by an unknown version.