Put soy milk and sugar in a saucepan and stir over low heat.
Add flour to the egg yolks and mix well.
Gradually add the warmed soy milk to the egg yolk mixture, stirring as you go.
Pour the mixture back into the saucepan and cook over medium heat, stirring constantly.
Once thickened, turn off the heat, let it cool, and it's done.