Class: Context

Inherits:
Object
  • Object
show all
Defined in:
lib/turmali/runtime/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(current_self, current_class = current_self.runtime_class) ⇒ Context

Returns a new instance of Context.



4
5
6
7
8
# File 'lib/turmali/runtime/context.rb', line 4

def initialize(current_self, current_class=current_self.runtime_class)
  @locals = {}
  @current_self = current_self
  @current_class = current_class
end

Instance Attribute Details

#current_classObject (readonly)

Returns the value of attribute current_class.



2
3
4
# File 'lib/turmali/runtime/context.rb', line 2

def current_class
  @current_class
end

#current_selfObject (readonly)

Returns the value of attribute current_self.



2
3
4
# File 'lib/turmali/runtime/context.rb', line 2

def current_self
  @current_self
end

#localsObject (readonly)

Returns the value of attribute locals.



2
3
4
# File 'lib/turmali/runtime/context.rb', line 2

def locals
  @locals
end