Class: CGenerator::Function::ReturnAccumulator

Inherits:
SingletonAccumulator
  • Object
show all
Defined in:
lib/cgen/cgen.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



1727
1728
1729
1730
1731
1732
1733
# File 'lib/cgen/cgen.rb', line 1727

def to_s
  if @pile.size > 0
    "return #{@pile.join};"
  else
    ""
  end
end