diff options
| author | mokha <mokha@cisco.com> | 2018-03-13 19:21:54 -0600 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2018-03-13 19:21:54 -0600 |
| commit | 4d23a77e4d9333a0649ae645f2d1e511b63ec4fa (patch) | |
| tree | b9c41b973a2b8b2c50718ecef0a547b1a8178568 | |
| parent | b79eb1aca452618da3e7aa478b6fffa34c37680f (diff) | |
slide from right to left.
| -rw-r--r-- | lib/xsay.rb | 2 |
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 |
