Dice the eggplant and onion.
Heat cooking oil in a pan and sauté the onions.
When the onions become translucent, add the eggplant and stir-fry.
Add soy sauce, minced garlic, sugar, and pepper, and stir-fry together.
Once the eggplant is fully cooked, serve it over rice.