Class: Foodie::CLI

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

Instance Method Summary collapse

Instance Method Details

#pluralizeObject



13
14
15
# File 'lib/foodie/cli.rb', line 13

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

#portray(name) ⇒ Object



8
9
10
# File 'lib/foodie/cli.rb', line 8

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

#recipe(group, name) ⇒ Object



18
19
20
# File 'lib/foodie/cli.rb', line 18

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