class String

Public Instance Methods

strip_heredoc() click to toggle source
# File lib/rake/distribute/item/file.rb, line 6
def strip_heredoc
  indent = scan(/^[ \t]*(?=\S)/).min.size || 0
  gsub(/^[ \t]{#{indent}}/, '')
end