Class: LIT::Builder::Object Private
- Inherits:
-
Object
- Object
- LIT::Builder::Object
- Defined in:
- lib/lit/builder/object.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- AST =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Parser::AST
Instance Method Summary collapse
- #build ⇒ Object private
-
#initialize(ast, target_module) ⇒ Object
constructor
private
A new instance of Object.
Constructor Details
#initialize(ast, target_module) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Object.
10 11 12 13 14 |
# File 'lib/lit/builder/object.rb', line 10 def initialize(ast, target_module) @ast = ast @target_module = target_module @type_checker = TypeChecker.new(target_module) end |
Instance Method Details
#build ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'lib/lit/builder/object.rb', line 16 def build @ast.statements.map { |stmt| build_statement(stmt) } end |