Sha256: b2aefafcc04b5c2b35fed088cba7ac3eaa5bd0b8fd4a68b2a25f2183b8038cb5
Contents?: true
Size: 384 Bytes
Versions: 3
Compression:
Stored size: 384 Bytes
Contents
module EasyRedis module Deleters def r_del(attribute) self.redis_cli.hdel(redis_key, attribute) end def method_missing(meth, *args, &block) (meth.to_s =~ /^redis_del_(.+)$/ || meth.to_s =~ /^r_del_(.+)$/) ? r_del($1) : super end alias_method :r_delete, :r_del alias_method :redis_del, :r_del alias_method :redis_delete, :r_del end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
easy_redis-0.1.0 | lib/easy_redis/methods/deleters.rb |
easy_redis-0.0.3 | lib/easy_redis/methods/deleters.rb |
easy_redis-0.0.2 | lib/easy_redis/methods/deleters.rb |