Sha256: 2e7381cd0ea89029b9833d1159fab965c2fd0c62f92f119c328c06ee2ba08da2
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 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_(.+)$/ || meth.to_s =~ /^r_delete_(.+)$/ || meth.to_s =~ /^redis_delete_(.+)$/) ? 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
easy_redis-1.0.0 | lib/easy_redis/methods/deleters.rb |