Class: Escodegen::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/escodegen/generator.rb

Instance Method Summary collapse

Constructor Details

#initializeGenerator

Returns a new instance of Generator.



5
6
7
# File 'lib/escodegen/generator.rb', line 5

def initialize
  @escodegen = Escodegen.new_environment
end

Instance Method Details

#generate(ast, options = {}) ⇒ Object



9
10
11
# File 'lib/escodegen/generator.rb', line 9

def generate(ast, options = {})
  @escodegen.generate(ast, options)
end