Class: Escodegen::Generator
- Inherits:
-
Object
- Object
- Escodegen::Generator
- Defined in:
- lib/escodegen/generator.rb
Instance Method Summary collapse
- #generate(ast, options = {}) ⇒ Object
-
#initialize ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
#initialize ⇒ Generator
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, = {}) @escodegen.generate(ast, ) end |