Sha256: 8b74fdd5c062033ab2bf2c711409514cf1be613fb5a3b572873ec1874ea42200
Contents?: true
Size: 1002 Bytes
Versions: 1
Compression:
Stored size: 1002 Bytes
Contents
require 'familia' require 'familia/test_helpers' ## Has all redis objects redis_objects = Familia::Object::RedisObject.klasses.keys redis_objects.collect(&:to_s).sort #=> ["hash", "list", "set", "string", "zset"] ## Familia::Object created class methods for redis object class Familia::Object::ClassMethods.public_method_defined? :list? #=> true ## Familia::Object created class methods for redis object class Familia::Object::ClassMethods.public_method_defined? :list #=> true ## Familia::Object created class methods for redis object class Familia::Object::ClassMethods.public_method_defined? :lists #=> true ## A Familia object knows its redis objects Bone.redis_objects.is_a?(Hash) && Bone.redis_objects.has_key?(:owners) #=> true ## A Familia object knows its lists Bone.lists.size #=> 1 ## A Familia object knows if it has a list Bone.list? :owners #=> true ## A Familia object can get a specific redis object def definition = Bone.list :owners definition.klass #=> Familia::Object::List
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
familia-0.6.0 | try/10_familia_try.rb |