Class: CoderCompanion::Common::RestOfElements
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- CoderCompanion::Common::RestOfElements
- Defined in:
- lib/codercompanion/common/literals.rb
Instance Method Summary collapse
Instance Method Details
#build ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/codercompanion/common/literals.rb', line 44 def build els = [] elements.map do |e| if e.respond_to? :another_element e.elements.map do |f| els.push(f.build) if f.respond_to? :build end end end els end |