Class: ChronoForge::Definition::Node
- Inherits:
-
Struct
- Object
- Struct
- ChronoForge::Definition::Node
- Defined in:
- lib/chrono_forge/definition.rb
Overview
kind: :execute :wait :wait_until :continue_if :branch :merge :repeat :dynamic A node binds to runtime logs by EXACT step_name when known, else by step_name_pattern (a prefix for fan-out/repeat/dynamic).
Instance Attribute Summary collapse
-
#guard ⇒ Object
Returns the value of attribute guard.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#label ⇒ Object
Returns the value of attribute label.
-
#step_name ⇒ Object
Returns the value of attribute step_name.
-
#step_name_pattern ⇒ Object
Returns the value of attribute step_name_pattern.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
- #dynamic? ⇒ Boolean
-
#to_h ⇒ Object
Default a missing warnings member to [] here (rather than overriding the struct's generated reader, which triggers a method-redefined warning).
Instance Attribute Details
#guard ⇒ Object
Returns the value of attribute guard
11 12 13 |
# File 'lib/chrono_forge/definition.rb', line 11 def guard @guard end |
#id ⇒ Object
Returns the value of attribute id
11 12 13 |
# File 'lib/chrono_forge/definition.rb', line 11 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind
11 12 13 |
# File 'lib/chrono_forge/definition.rb', line 11 def kind @kind end |
#label ⇒ Object
Returns the value of attribute label
11 12 13 |
# File 'lib/chrono_forge/definition.rb', line 11 def label @label end |
#step_name ⇒ Object
Returns the value of attribute step_name
11 12 13 |
# File 'lib/chrono_forge/definition.rb', line 11 def step_name @step_name end |
#step_name_pattern ⇒ Object
Returns the value of attribute step_name_pattern
11 12 13 |
# File 'lib/chrono_forge/definition.rb', line 11 def step_name_pattern @step_name_pattern end |
#warnings ⇒ Object
Returns the value of attribute warnings
11 12 13 |
# File 'lib/chrono_forge/definition.rb', line 11 def warnings @warnings end |
Instance Method Details
#dynamic? ⇒ Boolean
15 |
# File 'lib/chrono_forge/definition.rb', line 15 def dynamic? = kind == :dynamic || step_name.nil? |
#to_h ⇒ Object
Default a missing warnings member to [] here (rather than overriding the struct's generated reader, which triggers a method-redefined warning).
19 |
# File 'lib/chrono_forge/definition.rb', line 19 def to_h = super.merge(warnings: self[:warnings] || []) |