Module: MockRedis::UndefRedisMethods

Included in:
MockRedis, ExpireWrapper, MultiDbWrapper, TransactionWrapper
Defined in:
lib/mock_redis/undef_redis_methods.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/mock_redis/undef_redis_methods.rb', line 3

def self.included(klass)
  if klass.instance_methods.map(&:to_s).include?('type')
    klass.send(:undef_method, 'type')
  end
  klass.send(:undef_method, 'exec')
  klass.send(:undef_method, 'select')
end