Class: CommonPasswords::RedisPasswordList

Inherits:
Object
  • Object
show all
Defined in:
lib/common_passwords.rb

Instance Method Summary collapse

Instance Method Details

#include?(password) ⇒ Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/common_passwords.rb', line 28

def include?(password)
  CommonPasswords.redis.sismember CommonPasswords::LIST_KEY, password
end