Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/hu/common.rb
Instance Method Summary collapse
Instance Method Details
#strip_heredoc ⇒ Object
11 12 13 14 |
# File 'lib/hu/common.rb', line 11 def strip_heredoc indent = scan(/^[ \t]*(?=\S)/).min&.size || 0 gsub(/^[ \t]{#{indent}}/, '') end |