Class: YTLJit::VM::ToRubyContext

Inherits:
Object
  • Object
show all
Defined in:
lib/ytl/macro.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeToRubyContext

Returns a new instance of ToRubyContext.



4
5
6
7
8
9
# File 'lib/ytl/macro.rb', line 4

def initialize
  @ret_code = [""]
  @jmp_tab = {}
  @defined_method = {}
  @work_prefix = []
end

Instance Attribute Details

#defined_methodObject (readonly)

Returns the value of attribute defined_method.



13
14
15
# File 'lib/ytl/macro.rb', line 13

def defined_method
  @defined_method
end

#jmp_tabObject (readonly)

Returns the value of attribute jmp_tab.



12
13
14
# File 'lib/ytl/macro.rb', line 12

def jmp_tab
  @jmp_tab
end

#ret_codeObject (readonly)

Returns the value of attribute ret_code.



11
12
13
# File 'lib/ytl/macro.rb', line 11

def ret_code
  @ret_code
end

#work_prefixObject (readonly)

Returns the value of attribute work_prefix.



14
15
16
# File 'lib/ytl/macro.rb', line 14

def work_prefix
  @work_prefix
end