Remove knowledge of serialization details by marshaling twice

This commit is contained in:
Jack Nagel 2014-07-07 18:12:24 -05:00
parent 8c4569b7c2
commit cbdb46887a

View File

@ -29,11 +29,11 @@ class BuildEnvironment
end
def _dump(*)
@settings.to_a.join(":")
Marshal.dump(@settings)
end
def self._load(s)
new(*s.split(":").map(&:to_sym))
new(Marshal.load(s))
end
end