Module: LittleWeasel::Modules::Taggable
- Includes:
- TagValidatable
- Included in:
- DictionaryKey
- Defined in:
- lib/LittleWeasel/modules/taggable.rb
Overview
This module provides methods to manage objects that can be tagged. A tag is a value that can be included as part of a DictionaryKey object to make it unique across locales.
Instance Attribute Summary collapse
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
Methods included from TagValidatable
Instance Attribute Details
#tag ⇒ Object
Returns the value of attribute tag.
20 21 22 |
# File 'lib/LittleWeasel/modules/taggable.rb', line 20 def tag @tag end |
Instance Method Details
#tagged? ⇒ Boolean
22 23 24 |
# File 'lib/LittleWeasel/modules/taggable.rb', line 22 def tagged? tag.present? end |