oops, don't miss the '}' at the end

p Dir["#{File.expand_path(my_var)}/*"].each.map { |f| File.basename(f) }

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