summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormokha <mokha@cisco.com>2018-03-13 19:21:54 -0600
committermokha <mokha@cisco.com>2018-03-13 19:21:54 -0600
commit4d23a77e4d9333a0649ae645f2d1e511b63ec4fa (patch)
treeb9c41b973a2b8b2c50718ecef0a547b1a8178568
parentb79eb1aca452618da3e7aa478b6fffa34c37680f (diff)
slide from right to left.
-rw-r--r--lib/xsay.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xsay.rb b/lib/xsay.rb
index 2c81c27..c0a4793 100644
--- a/lib/xsay.rb
+++ b/lib/xsay.rb
@@ -43,7 +43,7 @@ module Xsay
message = message.join(' ') if message.respond_to?(:join)
line_break = "-" * message.length
move = distance > 1
- distance.times do |n|
+ distance.downto(0) do |n|
system 'clear' if move
spaces = " " * n
result = <<-MESSAGE