Add Version.slice to compat suite

Refs Homebrew/homebrew#14299.
This commit is contained in:
Max Howell 2012-08-28 12:11:34 -04:00
parent df45f8fd09
commit 396ca3fc59

View File

@ -217,3 +217,11 @@ module MacOS extend self
end
alias_method :mountain_lion_or_newer?, :mountain_lion?
end
class Version
def slice *args
opoo "Calling slice on versions is deprecated, use: to_s.slice"
to_s.slice *args
end
end