Class: Plasma::Interpreter::ColNode
- Inherits:
-
PlasmaNode
- Object
- Treetop::Runtime::SyntaxNode
- PlasmaNode
- Plasma::Interpreter::ColNode
- Defined in:
- lib/plasma/interpreter/plasma_grammarnode.rb
Instance Method Summary collapse
Methods inherited from PlasmaNode
Instance Method Details
#col ⇒ Object
180 181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/plasma/interpreter/plasma_grammarnode.rb', line 180 def col if first.empty? [] else if rest.empty? [first] else rest.elements.map do |el| el.elements.select{|subel| subel.is_a? PlasmaNode} end.flatten.unshift(first) end end end |