Hi,

that "!=" is the wrong method. It's an inequality check (as you 
problably know). But you want to check if the string does not match a 
certain pattern, which is done with !~.

But why make it so complicated? Just use something like

next if %w[. ..].include? name

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