Class: YARP::LexCompat::CommentToken

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

Overview

It is extremely non obvious which state the parser is in when comments get dispatched. Because of this we don’t both comparing state when comparing against other comment tokens.

Instance Method Summary collapse

Methods inherited from Token

#event, #location, #state, #value

Instance Method Details

#==(other) ⇒ Object



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

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