Object
# File lib/rkelly/runtime/scope_chain.rb, line 10 def <<(scope) @chain << scope end
# File lib/rkelly/runtime/scope_chain.rb, line 21 def [](name) property = has_property?(name) return property if property @chain.last.properties[name] end
# File lib/rkelly/runtime/scope_chain.rb, line 27 def []=(name, value) @chain.last.properties[name] = value end
# File lib/rkelly/runtime/scope_chain.rb, line 14 def has_property?(name) scope = @chain.reverse.find { |x| x.has_property?(name) } scope ? scope[name] : nil end
# File lib/rkelly/runtime/scope_chain.rb, line 39 def new_scope(&block) @chain << Scope.new result = yield(self) @chain.pop result end
# File lib/rkelly/runtime/scope_chain.rb, line 31 def pop @chain.pop end
# File lib/rkelly/runtime/scope_chain.rb, line 46 def return=(value) @chain.last.return = value end
Generated with the Darkfish Rdoc Generator 2.