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_comment, :on_heredoc_end, :on_embexpr_end

Instance Method Summary collapse

Methods inherited from Token

#event, #location, #state, #value

Instance Method Details

#==(other) ⇒ Object

:nodoc:



239
240
241
# File 'lib/prism/lex_compat.rb', line 239

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