Class: Myco::CodeLoader::RubyLoader
Instance Attribute Summary
#ast, #block_environment, #compiled_code, #constant_scope, #filename, #generator, #line, #receiver, #string, #variable_scope
Instance Method Summary
collapse
#bind_to, #compile, #is_rbc?, #load, #make_ast, #make_block_environment, #make_compiled_code, #make_generator, #make_string
Constructor Details
#initialize(*args) ⇒ RubyLoader
Returns a new instance of RubyLoader.
276
277
278
|
# File 'lib/myco/code_loader.rb', line 276
def initialize *args
super *args
end
|
Instance Method Details
#ast_root_for(body) ⇒ Object
280
281
282
|
# File 'lib/myco/code_loader.rb', line 280
def ast_root_for(body)
Rubinius::ToolSets::Runtime::AST::EvalExpression.new(body)
end
|
#compiled_file_type ⇒ Object
292
293
294
|
# File 'lib/myco/code_loader.rb', line 292
def compiled_file_type
Rubinius::ToolSets::Runtime::CompiledFile
end
|
#emit_rb! ⇒ Object
273
|
# File 'lib/myco/code_loader.rb', line 273
def emit_rb!; nil end
|
#emit_rbc! ⇒ Object
274
|
# File 'lib/myco/code_loader.rb', line 274
def emit_rbc!; nil end
|
#is_rb? ⇒ Boolean
271
|
# File 'lib/myco/code_loader.rb', line 271
def is_rb?; true end
|
#new_generator ⇒ Object
288
289
290
|
# File 'lib/myco/code_loader.rb', line 288
def new_generator
Rubinius::ToolSets::Runtime::Generator.new
end
|
#new_parser ⇒ Object
284
285
286
|
# File 'lib/myco/code_loader.rb', line 284
def new_parser
Rubinius::ToolSets::Runtime::Melbourne.new(@filename, @line, [])
end
|