Class: CatGenerator::Cli
- Inherits:
-
Object
- Object
- CatGenerator::Cli
- Defined in:
- lib/cat_generator/cli.rb
Class Method Summary collapse
Class Method Details
.run(option = 'browser') ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/cat_generator/cli.rb', line 3 def self.run(option = 'browser') case option when 'browser' CatGenerator::Photo.open_in_browser when 'file' CatGenerator::Photo.write_to_desktop when 'fact' puts CatGenerator::Fact.next else warn 'Usage: cat_generator [browser|file|fact]' end end |