diff options
Diffstat (limited to 'Library/Homebrew/compat')
| -rw-r--r-- | Library/Homebrew/compat/utils.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/compat/utils.rb b/Library/Homebrew/compat/utils.rb index ed6063472..56b0824ba 100644 --- a/Library/Homebrew/compat/utils.rb +++ b/Library/Homebrew/compat/utils.rb @@ -21,3 +21,8 @@ def puts_columns(items) odeprecated "puts_columns", "puts Formatter.columns" puts Formatter.columns(items) end + +def plural(n, s = "s") + odeprecated "#plural", "Formatter.pluralize" + n == 1 ? "" : s +end |
