diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/compat/compatibility.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/compat/compatibility.rb b/Library/Homebrew/compat/compatibility.rb index bbd349249..aff8e0be9 100644 --- a/Library/Homebrew/compat/compatibility.rb +++ b/Library/Homebrew/compat/compatibility.rb @@ -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 |
