Class: SequenceDef

Inherits:
Def
  • Object
show all
Defined in:
lib/runtime.rb

Instance Attribute Summary collapse

Attributes inherited from Def

#ast

Instance Method Summary collapse

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

#docObject (readonly)

Returns the value of attribute doc.



161
162
163
# File 'lib/runtime.rb', line 161

def doc
  @doc
end

#nameObject (readonly)

Returns the value of attribute name.



161
162
163
# File 'lib/runtime.rb', line 161

def name
  @name
end

#stepsObject (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