Ruby 2.4 adds Comparable#clamp method

Ruby 2.4 series | Comparable#clamp method is added to Ruby 2.4 to limit the object to a specific range of values