Skip to content

Commit b3216bc

Browse files
Earlopainnobu
authored andcommitted
Fix Ripper::Lexer::State#[] for to_s
The instance variable is called `to_s`, not `event`.
1 parent 50b7191 commit b3216bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ripper/lib/ripper/lexer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def [](index)
6868
when 0, :to_int
6969
@to_int
7070
when 1, :to_s
71-
@event
71+
@to_s
7272
else
7373
nil
7474
end

0 commit comments

Comments
 (0)