Module: SmoothJazzy
- Included in:
- SmoothJazzNyanCatMusicFormatter
- Defined in:
- lib/smooth_jazzy.rb
Instance Method Summary collapse
-
#ascii_cat(o = '^') ⇒ Array
Ascii version of Nyan cat.
Instance Method Details
#ascii_cat(o = '^') ⇒ Array
Ascii version of Nyan cat. Two cats in the array allow Nyan to animate running.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/smooth_jazzy.rb', line 8 def ascii_cat(o = '^') if o=='^' face = '⌐■.■' else face = "#{o} .#{o}" end [[ "----------", "_,------, ", "_| /\\_/\\ ", "~|_( #{face}) ", " \"\" \"\" ", "----------" ], [ "----------", "_,------, ", "_| /\\_/\\", "^|__( #{face}) ", " \"\" \"\" ", "----------" ]] end |