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

[ruby/irb] Use 0.step instead of (..0).each for Ruby 2.5

https://github.com/ruby/irb/commit/5d628ca40e
This commit is contained in:
aycabta 2020-02-03 01:18:50 +09:00
parent 8b8cc01229
commit 16f5d63bad

View file

@ -116,7 +116,7 @@ module IRB
end
ruby_model = RubyModel.new
print "\e[?1049h"
(0..).each do |i|
0.step do |i| # TODO (0..).each needs Ruby 2.6 or later
buff = canvas.draw do
ruby_model.render_frame(i) do |p1, p2|
canvas.line(p1, p2)