ralph had begun to discover this summer that everyone in america apparently had a pet remedy for insomnia , some bit of bedtime magic that had been handed down through the generations like the family bible .