aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/extend/string.rb
diff options
context:
space:
mode:
authorMike McQuaid2018-01-18 09:47:33 +0000
committerMike McQuaid2018-01-18 09:47:33 +0000
commit77f1768108272f2168e22a735bead49fe7045331 (patch)
tree429329004c1f002481ebdd1e28f5027204aa7982 /Library/Homebrew/compat/extend/string.rb
parent892e1b5b4fb2ec1b71b9486d65a8932f713af8a0 (diff)
downloadbrew-77f1768108272f2168e22a735bead49fe7045331.tar.bz2
Disable and add more deprecations.
These have all been deprecated/compat for a while.
Diffstat (limited to 'Library/Homebrew/compat/extend/string.rb')
-rw-r--r--Library/Homebrew/compat/extend/string.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/compat/extend/string.rb b/Library/Homebrew/compat/extend/string.rb
index 6069a6bec..9d1f66557 100644
--- a/Library/Homebrew/compat/extend/string.rb
+++ b/Library/Homebrew/compat/extend/string.rb
@@ -1,5 +1,6 @@
class String
def undent
+ odeprecated "<<-EOS.undent", "<<~EOS"
gsub(/^[ \t]{#{(slice(/^[ \t]+/) || '').length}}/, "")
end
alias unindent undent