Method: Kimurai::Base::Storage#include?
- Defined in:
- lib/kimurai/base/storage.rb
#include?(scope, value) ⇒ Boolean
17 18 19 20 21 22 |
# File 'lib/kimurai/base/storage.rb', line 17 def include?(scope, value) @mutex.synchronize do database[scope] ||= [] database[scope].include?(value) end end |