Module: Redis::Objects

Defined in:
lib/redis-objects-periodical.rb,
lib/redis/objects/periodical/version.rb

Defined Under Namespace

Modules: Periodical

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



24
25
26
27
28
29
30
31
32
33
# File 'lib/redis-objects-periodical.rb', line 24

def included(klass)
  original_included(klass)

  # Pull in each object type
  PERIODICALS.each do |periodical|
    klass.send :include, const_get("Redis::Objects::#{periodical.capitalize}Counters")
    klass.send :include, const_get("Redis::Objects::#{periodical.capitalize}Hashes")
    klass.send :include, const_get("Redis::Objects::#{periodical.capitalize}Sets")
  end
end

.original_includedObject



22
# File 'lib/redis-objects-periodical.rb', line 22

alias original_included included