Class: YARP::LexCompat::IgnoreStateToken

Inherits:
Token
  • Object
show all
Defined in:
lib/yarp/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



214
215
216
# File 'lib/yarp/lex_compat.rb', line 214

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