Class: Foodie::Food
- Inherits:
-
Object
- Object
- Foodie::Food
- Defined in:
- lib/foodie/food.rb
Class Method Summary collapse
Class Method Details
.pluralize(word) ⇒ Object
18 19 20 |
# File 'lib/foodie/food.rb', line 18 def self.pluralize(word) word.pluralize end |
.portray(food) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/foodie/food.rb', line 10 def self.portray(food) if food.downcase == "broccoli" "Gross!" else "Delicious!" end end |
.something_cool ⇒ Object
22 23 24 25 26 |
# File 'lib/foodie/food.rb', line 22 def self.something_cool raise StandardError, "Important ID undefined." if important_id.blank? "Something Cool!" end |