Version: add #to_f

This is used by things which used to compare against raw strings,
for example Xcode.uncached_version
This commit is contained in:
Misty De Meo 2016-11-03 16:54:20 -07:00
parent 20bbeb5e9c
commit d32a1c4c7d

View File

@ -260,6 +260,10 @@ class Version
version.hash
end
def to_f
version.to_f
end
def to_s
version.dup
end