Ergodic properties of a gas of one-dimensional hard rods with an infinite number of degrees of freedom