class String
Public Instance Methods
strip_heredoc()
click to toggle source
# File lib/core_ext/string/strip.rb, line 2 def strip_heredoc # https://github.com/rails/rails/blob/7f18ea14c893cb5c9f04d4fda9661126758332b5/activesupport/lib/active_support/core_ext/string/strip.rb gsub(/^#{scan(/^[ \t]*(?=\S)/).min}/, ''.freeze) end