Throw them away. Fungal spores will often live on objects until a host (ie you or your hamster) touches it, and then the fungus grows. After he's better, I'd just throw away anything that can't be washed or is porous. This may even mean doing a near complete cage cleaning as well. Ringworm isn't fun, just get rid of it now so it doesn't linger and spread. Toys are pretty inexpensive anyways, you can always get new ones
Make sure you're taking extreme precautions to avoid handling, ringworm is highly contagious. Good luck, hope he feels better soon