Class

This represents a token from the Ruby source.

Attributes
Read

The type of token that this token is.

Read

A byteslice of the source that this token represents.

Read

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

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.

Implement the pretty print interface for Token.