Class: CGenerator::Prototype::ArgumentAccumulator

Inherits:
Accumulator
  • Object
show all
Includes:
SetAccumulator
Defined in:
lib/cgen/cgen.rb

Instance Attribute Summary

Attributes inherited from Accumulator

#name, #parent

Instance Method Summary collapse

Methods included from SetAccumulator

#accept?

Methods inherited from Accumulator

#accept?, #add, #add_one, #add_one_really, #initialize, #inspect, #inspect_one, #output, #output_one, #separator

Constructor Details

This class inherits a constructor from CGenerator::Accumulator

Instance Method Details

#sizeObject



1552
1553
1554
# File 'lib/cgen/cgen.rb', line 1552

def size
  @pile.size
end

#to_sObject



1544
1545
1546
1547
1548
1549
1550
# File 'lib/cgen/cgen.rb', line 1544

def to_s
  if @pile.size > 0
    "(" + @pile.join(", ") + ")"
  else
    '(void)'
  end
end