Class: MockRedis::IndifferentHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/mock_redis/indifferent_hash.rb

Instance Method Summary collapse

Instance Method Details

#has_key?(key) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/mock_redis/indifferent_hash.rb', line 3

def has_key?(key)
  super(key.to_s)
end

#key?(key) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/mock_redis/indifferent_hash.rb', line 7

def key?(key)
  super(key.to_s)
end