Class: Plangi::Food

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

Class Method Summary collapse

Class Method Details

.pluralize(word) ⇒ Object



5
6
7
# File 'lib/plangi/food.rb', line 5

def self.pluralize(word)
  word.pluralize
end

.portray(food) ⇒ Object



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

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