You could make 2 the default number of times a thing would be repeated by adding a default value, and return "go away!" if they chose to repeat something 0 times, like this:
   def repeat(name, n=2)
		return "Go Away!" if n==0
		([name]*n).join(' ')
	end