Fry the onion and the egg in a wok until light brown. Add the boiled rice and soy sauce. Stir well until piping hot. Remove onto a plate and serve hot.