Sha256: 8e52a329f2a99843089729bee15eef6c77ac865457a69277de1355f61830474d

Contents?: true

Size: 288 Bytes

Versions: 10

Compression:

Stored size: 288 Bytes

Contents

class Trifle
  module InitializeWithRedis
    attr_accessor :redis
    attr_accessor :key

    def initialize redis, options = {}
      raise ArgumentError.new("Redis-like object expected") unless redis
      self.redis = redis
      self.key = options[:key] || "trifle"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
trifle-0.1.1 lib/trifle/initialize_with_redis.rb
trifle-0.1.0 lib/trifle/initialize_with_redis.rb
trifle-0.0.9 lib/trifle/initialize_with_redis.rb
trifle-0.0.8 lib/trifle/initialize_with_redis.rb
trifle-0.0.7 lib/trifle/initialize_with_redis.rb
trifle-0.0.6 lib/trifle/initialize_with_redis.rb
trifle-0.0.5 lib/trifle/initialize_with_redis.rb
trifle-0.0.4 lib/trifle/initialize_with_redis.rb
trifle-0.0.3 lib/trifle/initialize_with_redis.rb
trifle-0.0.2 lib/trifle/initialize_with_redis.rb