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:
Mike McQuaid 2017-11-05 12:11:57 +00:00
parent 389188ac4f
commit 77e3e7e4d9

View File

@ -431,6 +431,10 @@ class Version
version.to_f
end
def to_i
version.to_i
end
def to_s
version.dup
end