Class: ZunScript::ZRootScope

Inherits:
ZScope
  • Object
show all
Defined in:
lib/zunscript/scope.rb

Instance Method Summary collapse

Methods inherited from ZScope

#find, #inspect, #owner, #set, #set_local

Constructor Details

#initializeZRootScope

Returns a new instance of ZRootScope.



42
43
44
# File 'lib/zunscript/scope.rb', line 42

def initialize
  super
end

Instance Method Details

#first_with(identifier) ⇒ Object



46
47
48
# File 'lib/zunscript/scope.rb', line 46

def first_with identifier
  return @hash.has_key? identifier ? self : nil
end

#get(identifier) ⇒ Object



50
51
52
53
# File 'lib/zunscript/scope.rb', line 50

def get identifier
  #puts "get #{identifier} @ root: #{@hash[identifier].inspect}"
  return @hash[identifier]
end