Method: Highway::Compiler::Parse::Tree::Step#initialize

Defined in:
lib/highway/compiler/parse/tree/step.rb

#initialize(index:, name:, parameters:, preset:, stage:) ⇒ Step

Initialize an instance.

Parameters:

  • index (Integer)

    Index of step in its scope.

  • name (String)

    Name of the step.

  • parameters (Hash)

    Parameters of the step.

  • preset (String)

    Parent preset of the step.

  • stage (String)

    Parent stage of the step.



24
25
26
27
28
29
30
# File 'lib/highway/compiler/parse/tree/step.rb', line 24

def initialize(index:, name:, parameters:, preset:, stage:)
  @name = name
  @parameters = parameters
  @preset = preset
  @stage = stage
  @index = index
end