Class: Utensils

Inherits:
Object
  • Object
show all
Defined in:
lib/probable-spoon/utensils.rb

Instance Method Summary collapse

Constructor Details

#initialize(culture) ⇒ Utensils

Returns a new instance of Utensils.



2
3
4
# File 'lib/probable-spoon/utensils.rb', line 2

def initialize(culture)
  @culture = culture
end

Instance Method Details

#typeObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/probable-spoon/utensils.rb', line 6

def type
  case @culture
  when "Chinese"
    "Chinese soup spoon"
  when "Harmful to planet"
    "Plastic"
  else
    "Eco-friendly Biodegradable"
  end
end