Class: FoodieTool::Food

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

Class Method Summary collapse

Class Method Details

.pluralize(word) ⇒ Object



13
14
15
# File 'lib/foodie_tool/food.rb', line 13

def self.pluralize(word)
  word.pluralize
end

.portray(food) ⇒ Object



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

def self.portray(food)
  if food.casecmp('broccoli').zero? # downcase
    'Gross!'
  else
    'Delicious!'
  end
end