Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/dsl/commands/string.rb
Instance Method Summary collapse
Instance Method Details
#unindent_heredoc ⇒ Object
2 3 4 |
# File 'lib/dsl/commands/string.rb', line 2 def unindent_heredoc gsub(/^#{scan(/^\s*/).min_by{|l|l.length}}/, "") end |