version: support to_i.
This is needed for existing MacOS::Xcode.version calls that relied on this returning a string. It mirrors similar behaviour for to_f.
This commit is contained in:
parent
389188ac4f
commit
77e3e7e4d9
@ -431,6 +431,10 @@ class Version
|
|||||||
version.to_f
|
version.to_f
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def to_i
|
||||||
|
version.to_i
|
||||||
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
version.dup
|
version.dup
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user