Skip to content

Instantly share code, notes, and snippets.

@lucascaton
Created December 1, 2014 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucascaton/3eed268944ee3497e982 to your computer and use it in GitHub Desktop.
Save lucascaton/3eed268944ee3497e982 to your computer and use it in GitHub Desktop.
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