Class: CGenerator::MethodPrototype::MethodArgumentAccumulator

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

Instance Method Summary collapse

Instance Method Details

#add_one(item) ⇒ Object



1773
1774
1775
1776
1777
1778
1779
# File 'lib/cgen/cgen.rb', line 1773

def add_one item
  item = item.to_s
  unless item =~ /\AVALUE /
    item = "VALUE " + item
  end
  super
end

#resetObject



1780
1781
1782
# File 'lib/cgen/cgen.rb', line 1780

def reset
  @pile = []
end