class

Myst::Instantiation

Inherits Myst::Node / Reference / Object

An instantiation of a type. Instantiations create new instances of the specified type. After creating the value for the new type, a callback on the instance will be called to initialize the properties of the instance.

'%' [ const | interpolation ] '{' [ arg [ ',' arg ]* ] '}' [ block ]

Constructors

new(type : Myst::Node, args : Array(Myst::Node) = [] of Node, block : Myst::Node | Nil = nil)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

accept_children(visitor)
Source
args
Source
args=(args : Array(Node))
Source
block
Source
block=(block : Block | FunctionCapture | Nil)
Source
block?
Source
hash(hasher)

See Object#hash(hasher)

type
Source
type=(type : Node)
Source