Error on Chapter 11. - Refactor Factory - Nice Work!



This part of the code block inside the method does not work with out the return statements

# Check for correct input!
"n must be an integer" unless n.is_a? Integer
"n must be greater than 0" if n <= 0


Concur. I helped someone earlier today (without tracking down the lesson) and remarked that they didn't have return (though they did use puts). Now that I've found your old post, checking the lesson does confirm this 'misprint'. And the post is bumped for another go around. Thank you.