Sha256: 45f0b4a88ecc7e068b6718e09f66541a992bb628c6ea63ffd78027cb9790939d

Contents?: true

Size: 641 Bytes

Versions: 14

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

module LittleWeasel
  module Modules
    # This module provides methods to validate a dictionary cache object.
    # A dictionary cache object is a container that holds cached data
    # related to one or more dictionaries. Dictionary cache objects are
    # normally specific to a DictionaryManager object.
    module DictionaryCacheValidatable
      module_function

      def validate_dictionary_cache(dictionary_cache:)
        raise ArgumentError, "Argument dictionary_cache is not a valid Hash object: #{dictionary_cache.class}" \
          unless dictionary_cache.is_a? Hash
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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