Cut the eggplant and onion into bite-sized pieces.
Heat cooking oil in a pan and stir-fry the onion.
When the onion turns translucent, add the eggplant and stir-fry together.
Season with soy sauce, minced garlic, sugar, and pepper.
When the eggplant is cooked and tender, place it on top of the rice to finish.