Class: Gemwarrior::Apple
- Defined in:
- lib/gemwarrior/entities/items/apple.rb
Instance Attribute Summary
Attributes inherited from Item
Attributes inherited from Entity
#consumable, #describe, #describe_detailed, #description, #display_shopping_cart, #equippable, #equipped, #name, #name_display, #number_of_uses, #takeable, #talkable, #useable, #useable_battle, #used, #used_again
Instance Method Summary collapse
-
#initialize ⇒ Apple
constructor
A new instance of Apple.
Methods inherited from Item
Methods inherited from Entity
Constructor Details
#initialize ⇒ Apple
Returns a new instance of Apple.
8 9 10 11 12 13 14 15 |
# File 'lib/gemwarrior/entities/items/apple.rb', line 8 def initialize super self.name = 'apple' self.name_display = 'Apple' self.description = 'Reddish-orangeish in color, this fruit looks sweet, but it is heavy and feels more like a rock you would sooner not bite into.' self.takeable = true end |