class Myst::ClosureScope
- Myst::ClosureScope
- Myst::Scope
- Reference
- Object
Overview
A ClosureScope is a specially kind of Scope that allows direct access to closured entries from the parent scope, but also does not allow access to scopes beyond the parent.
Defined in:
myst/interpreter/closure_scope.crConstructors
Instance Method Summary
- #[]=(key : String, value : Value)
- #[]?(key : String)
- #assign(key : String, value : Value)
- #closed_scope : Scope
- #closed_scope=(closed_scope : Scope)
- #has_key?(key : String)
Instance methods inherited from class Myst::Scope
[](key : String) : Value
[],
[]=(key : String, value : Value) : Value
[]=,
[]?(key : String) : Value | Nil
[]?,
assign(key : String, value : Value)
assign,
clear(*args, **options)clear(*args, **options, &) clear, each(*args, **options)
each(*args, **options, &) each, has_key?(key : String) has_key?, parent : Scope | Nil parent, parent=(parent : Scope | Nil) parent=, values : Hash(String, Value) values, values=(values : Hash(String, Value)) values=