Class: Prism::LexCompat::IgnoreStateToken

Inherits:
Token
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from Token

#event, #initialize, #location, #method_missing, #respond_to_missing?, #state, #value

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) ⇒ Object

:nodoc:



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

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