class BSON::Binary

def from_uuid_old_to_csharp_legacy_uuid(hex)

Returns:
  • (String) - the csharp-legacy-formatted UUID

Parameters:
  • hex (String) -- The hexadecimal string to convert
def from_uuid_old_to_csharp_legacy_uuid(hex)
  hex.sub(/\A(..)(..)(..)(..)(..)(..)(..)(..)(.{16})\z/, '\4\3\2\1\6\5\8\7\9')
end