Dice the eggplant and onion.
Mince the garlic.
Heat olive oil in a pan and sauté the garlic and onion.
Add the eggplant and stir-fry for 5 minutes.
Pour in tomato sauce and bring to a simmer.
Boil the pasta and drain.
Add the pasta to the sauce and mix well.
Season with salt and pepper.
Finish with grated Parmesan cheese.