aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/string.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-05-29 19:22:46 +0100
committerGitHub2017-05-29 19:22:46 +0100
commit744e7dd1907aaf6493e6e4622a5997b562bfbf17 (patch)
treebbc05eebc29bdb6d539cd0e9d197b3762b49ffce /Library/Homebrew/extend/string.rb
parent3165fd2519c41a2be7e12442a5098d3b699fda04 (diff)
parent7a38bab333c6808022fe53aac2be9ca2e329cd53 (diff)
downloadbrew-744e7dd1907aaf6493e6e4622a5997b562bfbf17.tar.bz2
Merge pull request #2679 from MikeMcQuaid/parallel-rubocop
Use parallel RuboCop
Diffstat (limited to 'Library/Homebrew/extend/string.rb')
-rw-r--r--Library/Homebrew/extend/string.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/string.rb b/Library/Homebrew/extend/string.rb
index 162666d2d..809242db9 100644
--- a/Library/Homebrew/extend/string.rb
+++ b/Library/Homebrew/extend/string.rb
@@ -2,6 +2,7 @@ class String
def undent
gsub(/^[ \t]{#{(slice(/^[ \t]+/) || '').length}}/, "")
end
+ alias unindent undent
# eg:
# if foo then <<-EOS.undent_________________________________________________________72