This will work out of the box (unless your properties files has a "invalid format"):

require 'soap/property'
properties = SOAP::Property. load("myfile.pr operties")

Cheers,
Sergio Fierens