Module: Edibility
- Included in:
- Thing
- Defined in:
- lib/gamefic-standard/edible.rb
Instance Attribute Summary collapse
-
#edible ⇒ Object
writeonly
Sets the attribute edible.
Instance Method Summary collapse
Instance Attribute Details
#edible=(value) ⇒ Object (writeonly)
Sets the attribute edible
4 5 6 |
# File 'lib/gamefic-standard/edible.rb', line 4 def edible=(value) @edible = value end |
Instance Method Details
#edible? ⇒ Boolean
5 6 7 |
# File 'lib/gamefic-standard/edible.rb', line 5 def edible? @edible ||= false end |