Class: Foodie::Food
- Inherits:
-
Object
- Object
- Foodie::Food
- Defined in:
- lib/foodie/food.rb
Class Method Summary collapse
Class Method Details
.pluralize(word) ⇒ Object
11 12 13 |
# File 'lib/foodie/food.rb', line 11 def self.pluralize(word) word.pluralize end |
.portray(food) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/foodie/food.rb', line 4 def self.portray(food) if food.downcase == "broccoli" "Gross!" else "Delicious!" end end |