module BSON::String

def to_hex_string

Other tags:
    Since: - 2.0.0

Returns:
  • (String) - The string as hex.

Other tags:
    Example: Convert the string to hex. -
def to_hex_string
  unpack("H*")[0]
end