aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/string.rb
diff options
context:
space:
mode:
authorMisty De Meo2017-06-03 21:10:39 -0700
committerGitHub2017-06-03 21:10:39 -0700
commita4aacbc15eecb9bb2fc67ab2a70f0e3d35020ba3 (patch)
treed855ba10776e630e7c24b75f4eecd6d3dd8b07f5 /Library/Homebrew/extend/string.rb
parent98959f1fb9c667abde593dcd92128aed5367d29a (diff)
parent087035868aece3e4836ec69a72a0e3fdf96c64c0 (diff)
downloadbrew-a4aacbc15eecb9bb2fc67ab2a70f0e3d35020ba3.tar.bz2
Merge pull request #2699 from mistydemeo/fix_boolean_types
Fix boolean types
Diffstat (limited to 'Library/Homebrew/extend/string.rb')
-rw-r--r--Library/Homebrew/extend/string.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/string.rb b/Library/Homebrew/extend/string.rb
index 809242db9..ae7a209db 100644
--- a/Library/Homebrew/extend/string.rb
+++ b/Library/Homebrew/extend/string.rb
@@ -1,3 +1,6 @@
+# Contains backports from newer versions of Ruby
+require_relative "../vendor/backports/string"
+
class String
def undent
gsub(/^[ \t]{#{(slice(/^[ \t]+/) || '').length}}/, "")