Method: Familia::RedisObject.db

Defined in:
lib/familia/redisobject.rb

.db(v = nil) ⇒ Object



31
32
33
34
# File 'lib/familia/redisobject.rb', line 31

def db v=nil
  @db = v unless v.nil?
  @db || (parent ? parent.db : nil)
end