class Highway::Compiler::Build::Output::Invocation
This class represents a step invocation in the build manifest. It contains information about step definition class, parameters and execution policy.
Attributes
Index of invocation, 1-based.
@return [Integer]
A keypath used for debugging purposes.
@return [Array<String>]
Hash value of step parameters.
@return [Highway::Compiler::Analyze::Tree::Values::Hash]
Execution policy of the step invocation.
@return [Symbol]
Definition class of the step.
@return [Class]
Public Class Methods
Initialize an instance.
@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 [Symbol] Execution policy of the step invocation. @param keypath [Array<String>] A keypath used for debugging purposes.
# File lib/highway/compiler/build/output/invocation.rb, line 25 def initialize(index:, step_class:, parameters:, policy:, keypath:) @index = index @step_class = step_class @parameters = parameters @policy = policy @keypath = keypath end
Public Instance Methods
An identifier of the invocation, joined by index and step name.
@return [String]
# File lib/highway/compiler/build/output/invocation.rb, line 61 def identifier return "#{index}-#{step_class.name}" end