Class: GitGuts::Quote

Inherits:
Thor::GitGroup show all
Defined in:
lib/git_guts/quote.rb

Constant Summary

Constants inherited from Thor::GitGroup

Thor::GitGroup::BASENAME

Instance Method Summary collapse

Methods inherited from Thor::GitGroup

basename, namespace

Instance Method Details

#quoteObject



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/git_guts/quote.rb', line 6

def quote
  if name.downcase != 'linus'
    "\nSorry, I do not know this guy\n".red.slow_puts
  else
    DATA.each_line.each_with_index do |msg, i|
      if i == 4
        msg.chomp.random_color.slow_puts :delay => 0.015
      else
        msg.chomp.random_color.slow_puts
      end
    end
  end
end