class

Myst::OpAssign

Inherits Myst::Node / Reference / Object

An operational assignment. These function as a shorthand for an operation followed by an assignment to the same receiver.

target op'=' expression

For example, the operator || may be used to conditional assign to the target if it is currently falsey. The syntax target ||= expression is equivalent to target = target || expression. The same applies to other operations: target += expression is equivalent to target = target + value.

Constructors

new(target : Myst::Node, op : String, value : Myst::Node)
Source

Instance methods

==(other : self)

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

accept_children(visitor)
Source
hash(hasher)

See Object#hash(hasher)

op=(op : String)
Source
target
Source
target=(target : Node)
Source
value
Source
value=(value : Node)
Source