Ruby gem for 1D interval representation