Class

This represents a token from the Ruby source.

Attributes
Read

The Source object that represents the source this token came from.

Read

The type of token that this token is.

Read

A byteslice of the source that this token represents.

Class Methods

Create a new token object with the given type, value, and location.

Instance Methods

Returns true if the given other token is equal to this token.

Implement the hash pattern matching interface for Token.

Returns a string representation of this token.

A Location object representing the location of this token in the source.

Implement the pretty print interface for Token.