Class: Myco::CodeLoader::MycoLoader

Inherits:
AbstractLoader show all
Defined in:
lib/myco/code_loader.rb

Instance Attribute Summary

Attributes inherited from AbstractLoader

#ast, #block_environment, #compiled_code, #constant_scope, #filename, #generator, #line, #receiver, #string, #variable_scope

Instance Method Summary collapse

Methods inherited from AbstractLoader

#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

Constructor Details

This class inherits a constructor from Myco::CodeLoader::AbstractLoader

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_typeObject



265
266
267
# File 'lib/myco/code_loader.rb', line 265

def compiled_file_type
  Myco::ToolSet::CompiledFile
end

#new_generatorObject



261
262
263
# File 'lib/myco/code_loader.rb', line 261

def new_generator
  Myco::ToolSet::Generator.new
end

#new_parserObject



257
258
259
# File 'lib/myco/code_loader.rb', line 257

def new_parser
  Myco::ToolSet::Parser
end