Cut the eggplant and onion into bite-sized pieces.
Crack the eggs into a bowl, beat them, and season with salt.
Heat cooking oil in a pan and stir-fry the onion and eggplant.
Once the vegetables are cooked, add soy sauce and sugar and stir-fry together.
Pour the beaten eggs into the pan and gently stir over low heat until the eggs are cooked.
Serve all ingredients on top of steamed rice.