Class: Highway::Compiler::Analyze::Tree::Stage
- Inherits:
-
Object
- Object
- Highway::Compiler::Analyze::Tree::Stage
- Defined in:
- lib/highway/compiler/analyze/tree/stage.rb
Overview
This class represents a stage note in the semantic tree. It contains information about stage order and execution policy.
Instance Attribute Summary collapse
-
#index ⇒ Integer
readonly
Index of the stage.
-
#name ⇒ String
readonly
Name of the stage.
-
#policy ⇒ Symbol
readonly
Execution policy of the stage.
Instance Method Summary collapse
-
#initialize(index:, name:, policy:) ⇒ Stage
constructor
Initialize an instance.
Constructor Details
#initialize(index:, name:, policy:) ⇒ Stage
Initialize an instance.
22 23 24 25 26 |
# File 'lib/highway/compiler/analyze/tree/stage.rb', line 22 def initialize(index:, name:, policy:) @index = index @name = name @policy = policy end |
Instance Attribute Details
#index ⇒ Integer (readonly)
Index of the stage.
31 32 33 |
# File 'lib/highway/compiler/analyze/tree/stage.rb', line 31 def index @index end |
#name ⇒ String (readonly)
Name of the stage.
36 37 38 |
# File 'lib/highway/compiler/analyze/tree/stage.rb', line 36 def name @name end |
#policy ⇒ Symbol (readonly)
Execution policy of the stage.
41 42 43 |
# File 'lib/highway/compiler/analyze/tree/stage.rb', line 41 def policy @policy end |