Class: FoodieDavid::CLI
- Inherits:
-
Thor
- Object
- Thor
- FoodieDavid::CLI
- Defined in:
- lib/foodie_david/cli.rb
Instance Method Summary collapse
Instance Method Details
#pluralize ⇒ Object
14 15 16 |
# File 'lib/foodie_david/cli.rb', line 14 def pluralize puts FoodieDavid::Food.pluralize([:word]) end |
#portray(name) ⇒ Object
8 9 10 |
# File 'lib/foodie_david/cli.rb', line 8 def portray(name) puts FoodieDavid::Food.portray(name) end |
#recipe(group, name) ⇒ Object
19 20 21 |
# File 'lib/foodie_david/cli.rb', line 19 def recipe(group, name) FoodieDavid::Generators::Recipe.start([group, name]) end |