Method: MatrixSdk::Util::Tinycache.extended

Defined in:
lib/matrix_sdk/util/tinycache.rb

.extended(base) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/matrix_sdk/util/tinycache.rb', line 21

def self.extended(base)
  helper_name = base.send(:cache_helper_module_name)
  base.send :remove_const, helper_name if base.const_defined?(helper_name)
  base.prepend base.const_set(helper_name, Module.new)

  base.include InstanceMethods
end