class ProcessExecuter::Options

def assert_timeout_is_valid

Other tags:
    Api: - private

Raises:
  • (ArgumentError) - if timeout is not a real non-negative number

Returns:
  • (void) -
def assert_timeout_is_valid
  return if @options[:timeout].nil?
  return if @options[:timeout].is_a?(Numeric) && @options[:timeout].real? && !@options[:timeout].negative?
  raise ArgumentError, invalid_timeout_message
end