class BSON::Document
def has_key?(key)
- Since: - 4.0.0
Returns:
-
(true, false)
-
Parameters:
-
key
(Object
) -- The key to check for.
Other tags:
- Example: Test if a key exists using a symbol -
def has_key?(key) super(convert_key(key)) end