Class: Condenser::SVGTransformer::VarGenerator
- Inherits:
-
Object
- Object
- Condenser::SVGTransformer::VarGenerator
- Defined in:
- lib/condenser/transformers/svg_transformer/var_generator.rb
Instance Method Summary collapse
-
#initialize ⇒ VarGenerator
constructor
A new instance of VarGenerator.
- #next ⇒ Object
Constructor Details
#initialize ⇒ VarGenerator
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
#next ⇒ Object
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 |