class EleetScript::ClassInstanceContext
Attributes
ns_context[RW]
Public Instance Methods
[](key)
click to toggle source
Calls superclass method
EleetScript::BaseContext#[]
# File lib/lang/runtime/context.rb, line 254 def [](key) value = ns_context[key] if value == es_nil super else value end end
current_class()
click to toggle source
# File lib/lang/runtime/context.rb, line 246 def current_class @parent_context.current_class end
local_vars()
click to toggle source
# File lib/lang/runtime/context.rb, line 250 def local_vars {} end
namespace_context()
click to toggle source
# File lib/lang/runtime/context.rb, line 263 def namespace_context ns_context end
new_method_context(name, lambda_context = nil)
click to toggle source
# File lib/lang/runtime/context.rb, line 267 def new_method_context(name, lambda_context = nil) MethodContext.new(current_self, current_class, name, lambda_context).tap do |ctx| ctx.parent_context = self end end
Private Instance Methods
set_ns_context(ns_context)
click to toggle source
# File lib/lang/runtime/context.rb, line 275 def set_ns_context(ns_context) self.ns_context = ns_context end