class Rucc::LabelGen
Public Class Methods
new()
click to toggle source
# File lib/rucc/label_gen.rb, line 3 def initialize @label_id = 0 # [Integer] end
Public Instance Methods
next()
click to toggle source
# File lib/rucc/label_gen.rb, line 7 def next label = ".L#{@label_id}" @label_id += 1 label end