hm, missed line 10 where each instance sets the @@parser to a new instance of Parser.

If you want to, you can create a separate initializer for the class; have not tried a self.initialize method - it may work. Or you can create something else and call it each time an instance is created, it would then check if the class is initialized and return without doing anything if it is.

It is also possible to do it as the class loads; i.e. call the static initialization method ones when the file loads.