class

Myst::Self

Inherits Myst::Node / Reference / Object

An explicit reference to self. The primary usecase of self is to disambiguate method calls on an object from local variables. Specifically, assignment such as prop = 2, where prop= is a method on self will be parsed as a local variable assignment, whereas self.prop = 2 will parse as a call to the prop= method.

'self'

Instance methods

==(other : self)

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

hash(hasher)

See Object#hash(hasher)