Class: Condenser::SVGTransformer::VarGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/condenser/transformers/svg_transformer/var_generator.rb

Instance Method Summary collapse

Constructor Details

#initializeVarGenerator

Returns a new instance of VarGenerator.



2
3
4
# File 'lib/condenser/transformers/svg_transformer/var_generator.rb', line 2

def initialize
  @current = nil
end

Instance Method Details

#nextObject



6
7
8
9
# File 'lib/condenser/transformers/svg_transformer/var_generator.rb', line 6

def next
  @current = @current.nil? ? '__a' : @current.next
  @current
end