class Lemon::CLI::OBrother
The ol' “Sing it, Brother” Command.
Public Instance Methods
command_run(argv)
click to toggle source
# File lib/lemon/cli/obrother.rb, line 12 def command_run(argv) if argv.any?{ |a| a.downcase == 'good' } show_ascii_art else puts "No, they are GOOD!" end end
show_ascii_art()
click to toggle source
# File lib/lemon/cli/obrother.rb, line 21 def show_ascii_art string = File.read(File.dirname(__FILE__) + '/lemon.ascii') begin require 'ansi' puts string.ansi(:yellow) rescue LoadError puts string end end