Method: Conflow::Redis::Identifier::ClassMethods#inherited

Defined in:
lib/conflow/redis/identifier.rb

#inherited(base) ⇒ Object

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.

Copies counter_key and key_template to child classes

API:

  • private



23
24
25
26
27
# File 'lib/conflow/redis/identifier.rb', line 23

def inherited(base)
  base.instance_variable_set("@counter_key", counter_key)
  base.instance_variable_set("@key_template", key_template)
  super
end