diff options
| author | mokha <mokha@cisco.com> | 2018-02-13 19:12:06 -0700 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2018-02-13 19:12:06 -0700 |
| commit | a4eee38a7cd12e74650ef308d8412cd695315546 (patch) | |
| tree | d502ebd2b2f1124dc2d0bd5c79d39feb180107b4 /lib | |
| parent | 5401de49dcd25e6b6fcd7d9fef9fd847608cfab4 (diff) | |
add cat say.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/xsay.rb | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/lib/xsay.rb b/lib/xsay.rb index f243c0c..6befa6e 100644 --- a/lib/xsay.rb +++ b/lib/xsay.rb @@ -1,5 +1,27 @@ require "xsay/version" +require "thor" module Xsay - # Your code goes here... + class CLI < Thor + desc "cat <message>", "xsay cat meow" + def cat(message) + line_break = "-" * message.length + say <<-MESSAGE + #{line_break} +< #{message} > + #{line_break} + \\ \\ + ("`-''-/").___..--''"`-._ + `6_ 6 ) `-. ( ).`-.__.`) + (_Y_.)' ._ ) `._ `. ``-..-' + _..`--'_..-_/ /--'_.' ,' + (il),-'' (li),' ((!.-' + MESSAGE + end + + private + + def render(message, template) + end + end end |
