Class: YARP::LexCompat::EndContentToken
- Defined in:
- lib/yarp/lex_compat.rb
Overview
Ripper doesn’t include the rest of the token in the event, so we need to trim it down to just the content on the first line when comparing.
Instance Method Summary collapse
Methods inherited from Token
#event, #location, #state, #value
Instance Method Details
#==(other) ⇒ Object
206 207 208 |
# File 'lib/yarp/lex_compat.rb', line 206 def ==(other) [self[0], self[1], self[2][0..self[2].index("\n")], self[3]] == other end |