Class: CGenerator::Prototype
- Inherits:
-
CFragment
- Object
- Accumulator
- Template
- CFragment
- CGenerator::Prototype
- Defined in:
- lib/cgen/cgen.rb
Direct Known Subclasses
Defined Under Namespace
Classes: ArgumentAccumulator
Instance Attribute Summary
Attributes inherited from Accumulator
Instance Method Summary collapse
- #argc ⇒ Object
-
#initialize(name, parent) ⇒ Prototype
constructor
A new instance of Prototype.
- #separator ⇒ Object
Methods inherited from Template
Methods inherited from Accumulator
#accept?, #add, #add_one, #add_one_really, #inspect, #inspect_one, #output, #output_one, #to_s
Constructor Details
#initialize(name, parent) ⇒ Prototype
Returns a new instance of Prototype.
1561 1562 1563 1564 |
# File 'lib/cgen/cgen.rb', line 1561 def initialize name, parent super add scope!, return_type!, " ", name, arguments! end |
Instance Method Details
#argc ⇒ Object
1568 1569 1570 |
# File 'lib/cgen/cgen.rb', line 1568 def argc arguments!.size end |
#separator ⇒ Object
1566 |
# File 'lib/cgen/cgen.rb', line 1566 def separator; ""; end |