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
|
||||
end
|
||||
|
||||
def to_i
|
||||
version.to_i
|
||||
end
|
||||
|
||||
def to_s
|
||||
version.dup
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user