1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Revert "Simplify method chain (use 'map.with_index')"

This reverts commit a1f0a00b65.

It doesn't compatible with 1.8.7, ree, rbx-18mode, jruby-18mode.
This commit is contained in:
Kyrylo Silin 2013-01-03 14:09:34 +02:00
parent 84f6604fe1
commit 73167e059b

View file

@ -134,7 +134,7 @@ class Pry
lines = lines.lines
end
@lines = lines.map.with_index { |l, i| [l.chomp, i + start_line.to_i] }
@lines = lines.each_with_index.map { |l, i| [l.chomp, i + start_line.to_i] }
@code_type = code_type
end