Class: CoderCompanion::Common::Body

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/codercompanion/common/common.rb

Instance Method Summary collapse

Instance Method Details

#buildObject



14
15
16
17
18
19
20
21
# File 'lib/codercompanion/common/common.rb', line 14

def build
    els = []
    elements[0].elements.each do |e|
        built = e.build if e.respond_to? :build
        els.push(built) if built
    end
    return {:type => 'body', :value => els}
end