Class: EJX::Template::VarGenerator
- Inherits:
-
Object
- Object
- EJX::Template::VarGenerator
- Defined in:
- lib/ejx/template/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/ejx/template/var_generator.rb', line 2 def initialize @current = nil end |
Instance Method Details
#next ⇒ Object
6 7 8 9 |
# File 'lib/ejx/template/var_generator.rb', line 6 def next @current = @current.nil? ? '__a' : @current.next @current end |