class String
Public Instance Methods
strip_heredoc()
click to toggle source
# File lib/daiku/core_ext.rb, line 32 def strip_heredoc indent = scan(/^[ \t]*(?=\S)/).min.try(:size) || 0 gsub(/^[ \t]{#{indent}}/, '') end