module BSON::String
def to_bson_key
- Since: - 2.0.0
Other tags:
- See: http://bsonspec.org/#/specification -
Returns:
-
(String)
- The encoded string.
Raises:
-
(EncodingError)
- If the string is not UTF-8.
Other tags:
- Example: Get the string as key name. -
def to_bson_key self end