Class: EJX::Template::VarGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/ejx/template/var_generator.rb

Instance Method Summary collapse

Constructor Details

#initializeVarGenerator

Returns a new instance of VarGenerator.



2
3
4
# File 'lib/ejx/template/var_generator.rb', line 2

def initialize
  @current = nil
end

Instance Method Details

#nextObject



6
7
8
9
# File 'lib/ejx/template/var_generator.rb', line 6

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