Class: Foodie::Food

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

Class Method Summary collapse

Class Method Details

.pluralize(word) ⇒ Object



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

def self.pluralize(word)
  word.pluralize
end

.portray(food) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/foodie/food.rb', line 8

def self.portray(food)
  if food.downcase == 'broccoli'
    'Gross!'
  else
    'Delicious!'
  end
end