Module: RedisQueuedLocks::Config::DSL Private

Included in:
RedisQueuedLocks::Config
Defined in:
lib/redis_queued_locks/config/dsl.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 1.13.0

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(child_klass) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

  • child_klass (Class)

Since:

  • 1.13.0



80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/redis_queued_locks/config/dsl.rb', line 80

def included(child_klass)
  child_klass.instance_variable_set(
    :@config_setters,
    {} #: RedisQueuedLocks::Config::DSL::configSetters
  )
  child_klass.instance_variable_set(
    :@config_validators,
    {} #: RedisQueuedLocks::Config::DSL::configValidators
  )
  child_klass.extend(ClassMethods)
  child_klass.include(InstanceMethods)
  super
end