Class: Universe::World

Inherits:
Object
  • Object
show all
Defined in:
lib/universe/world.rb

Class Method Summary collapse

Class Method Details

.pluralize(word) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/universe/world.rb', line 11

def self.pluralize(word)
  if word.nil?
    "Enter the correct input"
  else
    word.pluralize
  end

end

.portray(world) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/universe/world.rb', line 4

def self.portray(world)
  if world.downcase == "broccoli"
    "#{world} Gross!"
  else
    "Delicious!"
  end
end