Use #each_line instead of #lines.

IO#each_line is deprecated so lets not rely on it.
This commit is contained in:
Yorick Peterse 2014-09-03 22:31:54 +02:00
parent bd31379c85
commit d67f43508d
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ end
def on_error(type, value, stack)
name = token_to_str(type)
index = @line - 1
lines = @data.lines.to_a
lines = @data.each_line.to_a
code = ''
# Show up to 5 lines before and after the offending line (if they exist).