Class: Clothing
- Defined in:
- lib/gamefic-standard/clothing/entities/clothing.rb
Instance Attribute Summary
Attributes inherited from Thing
#itemized, #locale_description, #portable
Attributes included from Grammar::Attributes
Attributes included from Edibility
Instance Method Summary collapse
Methods inherited from Thing
#attached=, #attached?, #itemized?, #parent=, #portable?, #room
Methods included from Grammar::Attributes
Methods included from Edibility
Instance Method Details
#worn? ⇒ Boolean
2 3 4 |
# File 'lib/gamefic-standard/clothing/entities/clothing.rb', line 2 def worn? self.parent.kind_of?(Character) and self.attached? end |