Class: Zaid::Nodes::NodeList
- Inherits:
-
Struct
- Object
- Struct
- Zaid::Nodes::NodeList
- Defined in:
- lib/zaid/nodes/node_list.rb
Instance Attribute Summary collapse
-
#node_list ⇒ Object
Returns the value of attribute node_list.
Instance Method Summary collapse
Instance Attribute Details
#node_list ⇒ Object
Returns the value of attribute node_list
5 6 7 |
# File 'lib/zaid/nodes/node_list.rb', line 5 def node_list @node_list end |
Instance Method Details
#<<(node) ⇒ Object
6 7 8 9 10 |
# File 'lib/zaid/nodes/node_list.rb', line 6 def <<(node) node_list << node self end |
#eval(context) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/zaid/nodes/node_list.rb', line 12 def eval(context) return_value = nil node_list.each do |node| return_value = node.eval(context) end return_value || Constants['مجهول'] end |