lib/quack_concurrency/sleeper.rb
def process_timeout(timeout)
      unless timeout == nil
        raise TypeError, "'timeout' must be nil or a Numeric" unless timeout.is_a?(Numeric)
        raise ArgumentError, "'timeout' must not be negative" if timeout.negative?
      end
      timeout = nil if timeout == Float::INFINITY
      timeout
    end
def process_timeout(timeout)
      unless timeout == nil
        raise TypeError, "'timeout' must be nil or a Numeric" unless timeout.is_a?(Numeric)
        raise ArgumentError, "'timeout' must not be negative" if timeout.negative?
      end
      timeout = nil if timeout == Float::INFINITY
      timeout
    end
def process_timeout ( timeout ) unless timeout == nil raise TypeError , "'timeout' must be nil or a Numeric" unless timeout . is_a? ( Numeric ) raise ArgumentError , "'timeout' must not be negative" if timeout . negative? end timeout = nil if timeout == Float :: INFINITY timeout end
Validates a timeout value, converting to a acceptable value if necessary
 @api private
 @param timeout [nil,Numeric]
 @raise [TypeError] if +timeout+ is not +nil+ or +Numeric+
 @raise [ArgumentError] if +timeout+ is negative
 @return [nil,Numeric]
Validates a timeout value converting to a acceptable value if necessary