Ruby Class for reading and writing java properties