Class: Gem::Jruby::Food

Inherits:
Object
  • Object
show all
Defined in:
lib/gem/jruby/food.rb

Class Method Summary collapse

Class Method Details

.pluralize(word) ⇒ Object



11
12
13
# File 'lib/gem/jruby/food.rb', line 11

def self.pluralize(word)
  word.pluralize
end

.portray(food) ⇒ Object



6
7
8
9
# File 'lib/gem/jruby/food.rb', line 6

def self.portray(food)
  return "Gross!" if food.downcase == "broccoli"
  "Delicious!"
end