diff options
| author | mokha <mokha@cisco.com> | 2018-03-20 19:39:47 -0600 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2018-03-20 19:39:47 -0600 |
| commit | a67f09c86932aa764d86495bc4b790c3e6c4c8f9 (patch) | |
| tree | 4021e3e4753299246730200ff946ee025053ae93 | |
| parent | 88a33fe180d22bd11b5b75225f57c65908062ceb (diff) | |
remove duplicate frames.
| -rw-r--r-- | lib/xsay/render.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xsay/render.rb b/lib/xsay/render.rb index 12e5156..12708b2 100644 --- a/lib/xsay/render.rb +++ b/lib/xsay/render.rb @@ -23,7 +23,7 @@ module Xsay def each_frame frames = distance.downto(0).to_a + 0.upto(distance).to_a - frames.each { |x| yield x } + frames.uniq.each { |x| yield x } end private |
