Peter Bailey wrote:
> What's with the "nil?"

capitalize! returns nil when the string is already capitalized. Use 
capitalize instead. Also, you don't need the puts inside the block.

stuff.collect { |x| x.capitalize }
puts stuff
-- 
Posted via http://www.ruby-forum.com/.