def setFile(fileName)
 ...
end

You do realise that Ruby is a dynamic language, there is no typing?

How you name your methods and variables is up to you but I would go with

def set_file(filename)
 ...
end