Sha256: ac8a9ce688ec2d55baa710d422018c559615dbf88e8282a07b0e83fce0a21098

Contents?: true

Size: 359 Bytes

Versions: 1

Compression:

Stored size: 359 Bytes

Contents

module EasyRedis

  module Updaters

    def r_update(attribute, value)
      self.r_del(attribute)
      self.r_set(attribute, value)
    end

    def method_missing(meth, *args, &block)
      (meth.to_s =~ /^redis_update_(.+)$/ || meth.to_s =~ /^r_update_(.+)$/) ? r_delete($1, *args) : super
    end

    alias_method :redis_update, :r_update



  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
easy_redis-0.0.2 lib/easy_redis/methods/updaters.rb