Module: Gemmy::Patches::HashPatch::InstanceMethods::HasKeys
- Defined in:
- lib/gemmy/patches/hash_patch.rb
Instance Method Summary collapse
-
#keys?(*check_keys) ⇒ Boolean
facets checks if a list of keys are all present.
Instance Method Details
#keys?(*check_keys) ⇒ Boolean
facets checks if a list of keys are all present
168 169 170 171 |
# File 'lib/gemmy/patches/hash_patch.rb', line 168 def keys?(*check_keys) unknown_keys = check_keys - self.keys return unknown_keys.empty? end |