What you create is a local variable. It is unique to the local method only. It will be discarded when the method dies.
I am also somewhat distrusting as why you need to share this ... data between your classes?
The idea is that a class is a unique instance of something--an object. Just as you can have a thousand cars from the same blueprint.
That's not entirely true.
The global File can still be accessed via ::File.