Sha256: 87db2e5eef0a8813e346d31e586e6c47c6eccab0061c955f56a7a484f11d64ad
Contents?: true
Size: 326 Bytes
Versions: 10
Compression:
Stored size: 326 Bytes
Contents
## # Removes indentation # # @example # help <<-EOS.undent # Here my help usage # sample_code # # Fix # EOS # puts help.red.bold # class String # Strip unnecessary indentation of the front of a string def undent warn "##{__method__} is deprecated" gsub(/^.{#{slice(/^ +/).size}}/, '') end end
Version data entries
10 entries across 10 versions & 1 rubygems