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

Instance Method Summary collapse

Methods included from TagValidatable

#validate_tag, validate_tag

Instance Attribute Details

#tagObject

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

Returns:

  • (Boolean)


22
23
24
# File 'lib/LittleWeasel/modules/taggable.rb', line 22

def tagged?
  tag.present?
end