Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def print_line(n, growning:)
sleep 0.02
puts '>>' * n
if growning
n += 1
print_line(n, growning: n < 30)
else
n -= 1
print_line(n, growning: n <= 0)
end
end
print_line(0, growning: true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment