123456789_123456789_123456789_123456789_123456789_

Class: Prism::LexCompat::IgnoreStateToken

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Token
Instance Chain:
self, Token
Inherits: Prism::LexCompat::Token
Defined in: lib/prism/lex_compat.rb

Overview

Tokens where state should be ignored used for :on_sp, :on_comment, :on_heredoc_end, :on_embexpr_end

Class Method Summary

Token - Inherited

.new

Create a new token object with the given ripper-compatible array.

Instance Method Summary

Token - Inherited

#event

The type of the token.

#location

The location of the token in the source.

#state

The state of the lexer when this token was produced.

#value

The slice of the source that this token represents.

#==

We want to pretend that this is just an Array.

#method_missing, #respond_to_missing?

Constructor Details

This class inherits a constructor from Prism::LexCompat::Token

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Prism::LexCompat::Token

Instance Method Details

#==(other)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/prism/lex_compat.rb', line 245

def ==(other) # :nodoc:
  self[0...-1] == other[0...-1]
end