Class: Foodie::Food

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

Class Method Summary collapse

Class Method Details

.pluralize(word) ⇒ Object



12
13
14
# File 'lib/foodie/food.rb', line 12

def self.pluralize(word) 
  word.pluralize
end

.portray(food) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/foodie/food.rb', line 5

def self.portray(food)
  if food.downcase == "broccoli"
    "Gross!"
  else
    "Good!"
  end
end