(a) The governing body of a Type A general-law municipality may build and establish one or more jails inside or outside the municipality.
(b) The governing body may adopt necessary rules and appoint necessary keepers or assistants for the jails.
(c) Vagrants and disorderly persons may be confined in a jail on commitment by a municipal court judge. A person who fails or refuses to pay the fine or costs imposed for an offense may be confined in a jail.