class Highway::Compiler::Build::Output::Manifest
This class represents a build manifest. It contains compiled step invocations.
Attributes
invocations[R]
Invocations in the manifest.
@return [Array<Highway::Compiler::Build::Output::Invocation>]
preset[RW]
The preset.
@return [String]
Public Class Methods
new()
click to toggle source
Initialize an instance.
# File lib/highway/compiler/build/output/manifest.rb, line 20 def initialize() @invocations = Array.new() end
Public Instance Methods
add_invocation(index:, step_class:, parameters:, policy:, keypath:)
click to toggle source
Add an invocation to the manifest.
@param index [Integer] Index of invocation, 1-based. @param step_class [Class] Definition class of the step. @param parameters [Highway::Compiler::Analyze::Tree::Values::Hash] Hash value of step parameters. @param policy [:normal, :always] Execution policy of the step invocation. @param keypath [Array<String>] A keypath used for debugging purposes.
@return [Void]
# File lib/highway/compiler/build/output/manifest.rb, line 43 def add_invocation(index:, step_class:, parameters:, policy:, keypath:) @invocations << Invocation.new(index: index, step_class: step_class, parameters: parameters, policy: policy, keypath: keypath) end