"require 'rational'" has been deprecated. So require rational only when the Rational module has not already been loaded

This eliminates a Ruby warning in recent versions of Ruby.

see: e0278964938ea346b2bf5237857e8656c2ca754d