Sha256: b2d9866e3b33a989970d4faacd18d3542f96592e4a16b710fa17c8af28716185

Contents?: true

Size: 653 Bytes

Versions: 15

Compression:

Stored size: 653 Bytes

Contents

# frozen_string_literal: true

require 'active_support/core_ext/module/delegation'
require_relative 'dictionary_key_validatable'

module LittleWeasel
  module Modules
    # This module defines attributes and functionality for a dictionary
    # key. A dictionary key is a unique key (basically a locale and optional
    # tag suffix) that is used to link a dictionary to the dictionary cache
    # and dictionary metadata objects.
    module DictionaryKeyable
      include Modules::DictionaryKeyValidatable

      attr_reader :dictionary_key

      delegate :key, to: :dictionary_key

      private

      attr_writer :dictionary_key
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
LittleWeasel-5.0.13 lib/LittleWeasel/modules/dictionary_keyable.rb
LittleWeasel-5.0.12 lib/LittleWeasel/modules/dictionary_keyable.rb
LittleWeasel-5.0.11 lib/LittleWeasel/modules/dictionary_keyable.rb
LittleWeasel-5.0.10 lib/LittleWeasel/modules/dictionary_keyable.rb
LittleWeasel-5.0.9 lib/LittleWeasel/modules/dictionary_keyable.rb
LittleWeasel-5.0.8 lib/LittleWeasel/modules/dictionary_keyable.rb
LittleWeasel-5.0.7 lib/LittleWeasel/modules/dictionary_keyable.rb
LittleWeasel-5.0.6 lib/LittleWeasel/modules/dictionary_keyable.rb
LittleWeasel-5.0.5 lib/LittleWeasel/modules/dictionary_keyable.rb
LittleWeasel-5.0.4 lib/LittleWeasel/modules/dictionary_keyable.rb
LittleWeasel-5.0.3 lib/LittleWeasel/modules/dictionary_keyable.rb
LittleWeasel-5.0.2 lib/LittleWeasel/modules/dictionary_keyable.rb
LittleWeasel-5.0.1 lib/LittleWeasel/modules/dictionary_keyable.rb
LittleWeasel-5.0.0 lib/LittleWeasel/modules/dictionary_keyable.rb
LittleWeasel-4.0.0 lib/LittleWeasel/modules/dictionary_keyable.rb