Fix Ripper::Lexer::State#[] for to_s

The instance variable is called `to_s`, not `event`.
This commit is contained in:
Earlopain 2026-01-08 11:46:29 +01:00 committed by Nobuyoshi Nakada
parent 50b719115a
commit b3216bc1e1
Notes: git 2026-01-09 00:33:43 +00:00

View File

@ -68,7 +68,7 @@ class Ripper
when 0, :to_int
@to_int
when 1, :to_s
@event
@to_s
else
nil
end