Skip to content

Commit

Permalink
Use 0.step instead of (..0).each for Ruby 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Feb 2, 2020
1 parent f340e75 commit 5d628ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb/easter-egg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def render_frame(i)
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)
Expand Down

0 comments on commit 5d628ca

Please sign in to comment.