7stud 7stud wrote:
>>That's because you're not exercising the section under @names.nil?
>>Try: mg = MegaGreeter.new(nil)
> 
>>You spoiled it ;)
>>but this is a good way to explain it too...
> 
> What does that have to do with anything?
> 

I tried it, and I got an error for the 'elseif'.  Why is that?  If the 
first branch succeeds, why is the elsif branch even evaluated?

-- 
Posted via http://www.ruby-forum.com/.