Class: Utensils
- Inherits:
-
Object
- Object
- Utensils
- Defined in:
- lib/probable-spoon/utensils.rb
Instance Method Summary collapse
-
#initialize(culture) ⇒ Utensils
constructor
A new instance of Utensils.
- #type ⇒ Object
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
#type ⇒ Object
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 |