Class: Foodie::Food
- Inherits:
-
Object
- Object
- Foodie::Food
- Defined in:
- lib/foodie/food.rb
Class Method Summary collapse
Class Method Details
.pluralize(word) ⇒ Object
13 14 15 |
# File 'lib/foodie/food.rb', line 13 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 'Delicious!' end end |