unless n.is_a? Integer
return "n must be an integer."
^^^The instructions are to refractor the code to use a single-line if and
so here is my code that i changed it to:
puts "n must be an integer." unless integer
puts "n must be greater than 0."
the output reads: "n must be greater than zero"
but then i get an Error pop up that says "The program took too long to finish. Check your code for infinite loops and try again."
WHAT IS GOING ON HERE? HELP!