Module: Gemmy::Patches::HashPatch::InstanceMethods::OnlyKeys
- Defined in:
- lib/gemmy/patches/hash_patch.rb
Instance Method Summary collapse
-
#only_keys?(*check_keys) ⇒ Boolean
facets checks if these are the only keys.
Instance Method Details
#only_keys?(*check_keys) ⇒ Boolean
facets checks if these are the only keys
177 178 179 180 |
# File 'lib/gemmy/patches/hash_patch.rb', line 177 def only_keys?(*check_keys) unknown_keys = self.keys - check_keys return unknown_keys.empty? end |