Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/web_git/string.rb
Overview
required for git
Instance Method Summary collapse
Instance Method Details
#strip_heredoc ⇒ Object
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 |