Class: Rucc::StaticLabelGen
- Inherits:
-
Object
- Object
- Rucc::StaticLabelGen
- Defined in:
- lib/rucc/static_label_gen.rb
Instance Method Summary collapse
-
#initialize ⇒ StaticLabelGen
constructor
A new instance of StaticLabelGen.
- #next(name) ⇒ String
Constructor Details
#initialize ⇒ StaticLabelGen
Returns a new instance of StaticLabelGen.
3 4 5 |
# File 'lib/rucc/static_label_gen.rb', line 3 def initialize @id = 0 # [Integer] end |
Instance Method Details
#next(name) ⇒ String
9 10 11 12 13 |
# File 'lib/rucc/static_label_gen.rb', line 9 def next(name) static_label = ".S#{@id}.#{name}" @id += 1 static_label end |