Class: SequenceDef
Instance Attribute Summary collapse
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#steps ⇒ Object
readonly
Returns the value of attribute steps.
Attributes inherited from Def
Instance Method Summary collapse
- #add_step(step_def) ⇒ Object
-
#initialize(ast) ⇒ SequenceDef
constructor
A new instance of SequenceDef.
Constructor Details
#initialize(ast) ⇒ SequenceDef
Returns a new instance of SequenceDef.
163 164 165 166 167 168 |
# File 'lib/runtime.rb', line 163 def initialize ast super ast @name = ast.name @steps = [] @doc = ast.doc end |
Instance Attribute Details
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
161 162 163 |
# File 'lib/runtime.rb', line 161 def doc @doc end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
161 162 163 |
# File 'lib/runtime.rb', line 161 def name @name end |
#steps ⇒ Object (readonly)
Returns the value of attribute steps.
161 162 163 |
# File 'lib/runtime.rb', line 161 def steps @steps end |
Instance Method Details
#add_step(step_def) ⇒ Object
170 171 172 |
# File 'lib/runtime.rb', line 170 def add_step step_def @steps.push step_def end |