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[R]

Index of invocation, 1-based.

@return [Integer]

keypath[R]

A keypath used for debugging purposes.

@return [Array<String>]

parameters[R]

Hash value of step parameters.

@return [Highway::Compiler::Analyze::Tree::Values::Hash]

policy[R]

Execution policy of the step invocation.

@return [Symbol]

step_class[R]

Definition class of the step.

@return [Class]

Public Class Methods

new(index:, step_class:, parameters:, policy:, keypath:) click to toggle source

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

identifier() click to toggle source

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