Sha256: 75224f9e027f14d902b61cdf590032b8c0c561c6727a832d18cfeda216640701
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
require 'active_support/inflector' module Foodie class Food def self.portray(food) if food.downcase == "broccoli" "Gross!" elsif food.downcase == "banana" "Yummy!" else "Delicious!" end end def self.pluralize(word) word.pluralize end # puts portray("Maggi") # puts pluralize("tomato") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foodie-kaushal-0.1.3 | lib/foodie/food.rb |