Sha256: 7a3908a3cbd079dc4554cbae60017736595999e510cadf9024af56e7daab548b
Contents?: true
Size: 265 Bytes
Versions: 53
Compression:
Stored size: 265 Bytes
Contents
class String # @see http://api.rubyonrails.org/classes/String.html#method-i-strip_heredoc def undent indent = scan(/^[ \t]*(?=\S)/).min.size || 0 gsub(/^[ \t]{#{indent}}/, '') end alias_method :dedent, :undent def blank? to_s == '' end end
Version data entries
53 entries across 53 versions & 1 rubygems