Class: YARP::LexCompat::HeredocEndToken

Inherits:
Token
  • Object
show all
Defined in:
lib/yarp/lex_compat.rb

Overview

Heredoc end tokens are emitted in an odd order, so we don’t compare the state on them.

Instance Method Summary collapse

Methods inherited from Token

#event, #location, #state, #value

Instance Method Details

#==(other) ⇒ Object



223
224
225
# File 'lib/yarp/lex_compat.rb', line 223

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