Class: GitGuts::Quote
- Inherits:
-
Thor::GitGroup
- Object
- Group
- Thor::GitGroup
- GitGuts::Quote
- Defined in:
- lib/git_guts/quote.rb
Constant Summary
Constants inherited from Thor::GitGroup
Instance Method Summary collapse
Methods inherited from Thor::GitGroup
Instance Method Details
#quote ⇒ Object
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 |