It should be fine, with the right treatment.
Start off with neosporin or triple antibiotic ointment, NOT the pain free type, use plain stuff.
Apply it at least 3 times a day or at least twice, if you have to, morning and evening.
I have no idea what your substrate is now, but change it to newspaper, paper towels or a sheet, in order to keep any foreign objects from getting into the area.
Watch for any swelling, drainage or obvious infections.
If any appear, vet trip, asap.
If not, then it will heal fine and the skin will regrow.
My big question is how did you accidentally hit it with a peice of wood while it was eating?