8000 Use 0.step instead of (..0).each for Ruby 2.5 · ruby/irb@5d628ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d628ca

Browse files
committed
Use 0.step instead of (..0).each for Ruby 2.5
1 parent f340e75 commit 5d628ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/irb/easter-egg.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def render_frame(i)
116116
end
117117
ruby_model = RubyModel.new
118118
print "\e[?1049h"
119-
(0..).each do |i|
119+
0.step do |i| # TODO (0..).each needs Ruby 2.6 or later
120120
buff = canvas.draw do
121121
ruby_model.render_frame(i) do |p1, p2|
122122
canvas.line(p1, p2)

0 commit comments

Comments
 (0)
0