Method: String#strip_heredoc

Defined in:
lib/web_git/string.rb

#strip_heredocObject



3
4
5
6
# File 'lib/web_git/string.rb', line 3

def strip_heredoc
  indent = scan(/^[ \t]*(?=\S)/).min.size || 0
  gsub(/^[ \t]{#{indent}}/, '')
end