Class: Confuscript::Nodes::BlockNode
- Inherits:
-
BaseNode
- Object
- Treetop::Runtime::SyntaxNode
- BaseNode
- Confuscript::Nodes::BlockNode
- Defined in:
- lib/confuscript/nodes/block_node.rb
Instance Method Summary collapse
Methods inherited from BaseNode
Instance Method Details
#evaluate(context) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/confuscript/nodes/block_node.rb', line 4 def evaluate(context) actions = [] action_lists.each do |action| element = action.elements.first actions << element.evaluate(context) if element.respond_to?(:evaluate) end actions.last end |