Class: Wq::CLI::Commands::Inspire
- Inherits:
-
CommandKit::Command
- Object
- CommandKit::Command
- Wq::CLI::Commands::Inspire
- Includes:
- CommandKit::Colors, CommandKit::Printing::Indent
- Defined in:
- lib/wq/cli/commands/inspire.rb
Instance Method Summary collapse
Instance Method Details
#quote ⇒ Object
20 21 22 |
# File 'lib/wq/cli/commands/inspire.rb', line 20 def quote @quote ||= Wq::Data.quotes.sample end |
#run ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/wq/cli/commands/inspire.rb', line 11 def run puts "" indent(2) do puts colors.white("\"#{quote[:text]}\"") puts colors.gray("-- #{quote[:author]}") end puts "" end |