Sha256: 47af254c4a0c94ee9b98721870660177fe40d406bdfd840b57479222ddcd1d7b
Contents?: true
Size: 126 Bytes
Versions: 3
Compression:
Stored size: 126 Bytes
Contents
class String def strip_heredoc indent = scan(/^[ \t]*(?=\S)/).min.size || 0 gsub(/^[ \t]{#{indent}}/, '') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fci-0.0.3 | lib/fci/helpers.rb |
fci-0.0.2 | lib/fci/helpers.rb |
fci-0.0.1 | lib/fci/helpers.rb |