Class: Foodie::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/foodie/cli.rb

Instance Method Summary collapse

Instance Method Details

#pluralizeObject



16
17
18
# File 'lib/foodie/cli.rb', line 16

def pluralize
  puts Foodie::Food.pluralize(options[:word])
end

#portray(name) ⇒ Object



10
11
12
# File 'lib/foodie/cli.rb', line 10

def portray(name)
  puts Foodie::Food.portray(name)
end

#recipe(group, name) ⇒ Object



21
22
23
# File 'lib/foodie/cli.rb', line 21

def recipe(group, name)
  Foodie::Generators::Recipe.start([group, name])
end