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:
parent
20bbeb5e9c
commit
d32a1c4c7d
@ -260,6 +260,10 @@ class Version
|
||||
version.hash
|
||||
end
|
||||
|
||||
def to_f
|
||||
version.to_f
|
||||
end
|
||||
|
||||
def to_s
|
||||
version.dup
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user