struct Novika::Resolver::Designation
- Novika::Resolver::Designation
- Struct
- Value
- Object
Overview
Designation objects encapsulate a runnable environment and a set of resolutions that should be run within that environment.
The preferred way to create designations is via RunnableEnvironment#designate
.
After obtaining a designation, you can #run
it as many times as
you want.
Defined in:
novika/resolver.crConstructors
Instance Method Summary
-
#caps : Novika::CapabilityCollection
Returns this designation's own capability collection.
-
#label : String
Returns the label of this designation.
-
#run
Runs the designated resolutions under a new common toplevel block.
-
#slurp(target : Block)
Parses the designated resolutions and appends the parsed forms to target.
-
#to_s(io, sm = false)
Appends the string representation of this designation to io.
Constructor Detail
Instance Method Detail
Returns the label of this designation. It is formed from the basename of this designation's runnable environment.
Parses the designated resolutions and appends the parsed forms to target. Their order is kept, and matches that of the designated resolutions.
Appends the string representation of this designation to io.
sm, if set to true, enables SMall output mode. In this mode, only relative paths of the designated resolutions are appended to io, separated by newlines.