"The heart of a child is full of foolish things"
The writer speaks of discipline as if that parent were using a wooden rod.
"will make a child wise"