Module: Redis::Aid

Defined in:
lib/redis/aid.rb,
lib/redis/aid/version.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, Version

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.redisObject

Returns the value of attribute redis.



9
10
11
# File 'lib/redis/aid.rb', line 9

def redis
  @redis
end

Class Method Details

.included(base) ⇒ Object

InstanceMethods



40
41
42
43
44
# File 'lib/redis/aid.rb', line 40

def self.included(base) # :nodoc:
  base.send :extend, ClassMethods
  base.send :include, InstanceMethods
  base.ns = @ns and @ns = nil if @ns 
end

.Namespace(ns) ⇒ Object Also known as: Ns



15
16
17
18
# File 'lib/redis/aid.rb', line 15

def Namespace(ns)
  Redis::Aid.instance_variable_set("@ns", ns)
  Redis::Aid
end

.versionObject

Version



11
12
13
# File 'lib/redis/aid/version.rb', line 11

def self.version
  Version::STRING
end