class Scope

Defined in:

scope.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(parent : Nil | Scope = nil) #

[View source]

Instance Method Detail

def assign(name : String, value : ValidType) #

Assigns a variable to the local scope, this is not global


[View source]
def lookup(name : String) : ValidType #

Looks up a variable in this scope and parent scopes


[View source]