Class: CGenerator::CFragment::BlockAccumulator

Inherits:
StatementAccumulator show all
Defined in:
lib/cgen/cgen.rb

Instance Attribute Summary

Attributes inherited from Accumulator

#name, #parent

Instance Method Summary collapse

Methods inherited from StatementAccumulator

#add_one_really, #output_one

Methods inherited from Accumulator

#accept?, #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

#add(*args) ⇒ Object



1356
1357
1358
1359
# File 'lib/cgen/cgen.rb', line 1356

def add(*args)
  super
  return self
end

#to_sObject



1360
1361
1362
# File 'lib/cgen/cgen.rb', line 1360

def to_s
  ["{", super.tabto(4), "}"].join "\n"
end