Yes, your bike can be your best friend. With someone approaching like that, picking up your bike and throwing it at them is a good ploy.A couple of years ago I had a run in somebody in Liverpool city centre. The driver shouted at me, then got out and came at me with clenched fists raised. I hopped off the bike quickly and lifting it, thrust it out at arms length, just as the driver ran on to it, getting a pedal in the mouth and losing some teeth in the process. Sorted . I tell you, that's one little old woman who will think twice next time before attacking a defenceless cyclist.
Depending on the level of threat and the size of the attacker, following the bike's flight then jumping on bike and attacker works just fine.