class String

Public Instance Methods

unindent_heredoc() click to toggle source
# File lib/dsl/commands/string.rb, line 2
def unindent_heredoc
  gsub(/^#{scan(/^\s*/).min_by{|l|l.length}}/, "")
end