Sha256: 5abb6ccfe44706917277621759c5fd96cc4bb4ca9c131ecaca2fc43d7674316c
Contents?: true
Size: 326 Bytes
Versions: 2
Compression:
Stored size: 326 Bytes
Contents
class Redis # Defines base functionality for all redis-objects. class BaseObject def initialize(key, *args) @key = key.is_a?(Array) ? key.flatten.join(':') : key @options = args.last.is_a?(::Hash) ? args.pop : {} # ::Hash because of Redis::Hash @redis = args.first || $redis end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redis-objects-0.4.1 | lib/redis/base_object.rb |
redis-objects-0.4.0 | lib/redis/base_object.rb |