Class: Myco::CodeLoader::MycoLoader
Instance Attribute Summary
#ast, #block_environment, #compiled_code, #constant_scope, #filename, #generator, #line, #receiver, #string, #variable_scope
Instance Method Summary
collapse
#bind_to, #compile, #emit_rb!, #emit_rbc!, #initialize, #is_rb?, #is_rbc?, #load, #make_ast, #make_block_environment, #make_compiled_code, #make_generator, #make_string
Instance Method Details
#ast_root_for(body) ⇒ Object
253
254
255
|
# File 'lib/myco/code_loader.rb', line 253
def ast_root_for(body)
Myco::ToolSet::AST::Script.new(body: body)
end
|
#compiled_file_type ⇒ Object
265
266
267
|
# File 'lib/myco/code_loader.rb', line 265
def compiled_file_type
Myco::ToolSet::CompiledFile
end
|
#new_generator ⇒ Object
261
262
263
|
# File 'lib/myco/code_loader.rb', line 261
def new_generator
Myco::ToolSet::Generator.new
end
|
#new_parser ⇒ Object
257
258
259
|
# File 'lib/myco/code_loader.rb', line 257
def new_parser
Myco::ToolSet::Parser
end
|