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