Class: CoderCompanion::Java::Implementation
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- CoderCompanion::Java::Implementation
- Defined in:
- lib/codercompanion/java/java.rb
Instance Method Summary collapse
Instance Method Details
#build ⇒ Object
334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/codercompanion/java/java.rb', line 334 def build implements = [] elements.each do |e| val = e.build if e.respond_to? :build if val && val.class.to_s == "Array" implements.concat(val) elsif val implements.push(val) end end return implements end |