The board of directors of a public school district or the authorities in charge of an accredited nonpublic school shall prescribe reasonable rules for the punishment of truants.