Class: WLang::Compiler::ToRubyCode::IdGen

Inherits:
Object
  • Object
show all
Defined in:
lib/wlang/compiler/to_ruby_code.rb

Instance Method Summary collapse

Constructor Details

#initializeIdGen

Returns a new instance of IdGen.



8
# File 'lib/wlang/compiler/to_ruby_code.rb', line 8

def initialize; @current = 0;  end

Instance Method Details

#nextObject



9
# File 'lib/wlang/compiler/to_ruby_code.rb', line 9

def next;       @current += 1; end

#to_sObject



10
# File 'lib/wlang/compiler/to_ruby_code.rb', line 10

def to_s;       @current.to_s; end