Using regular expression:
input_data = gets.chomp
while input_data !~ /^[1-9]\d*$/
puts "input_data can't be 0 or a negative integer or in decimal format or alphanumeric. \nPlease input appropriate input_data as a +ve "
input_data = gets.chomp
end