Sha256: 7ad1ac43b5a1b293b5941ab2d218d26b6a75eb0467972ffa87a9ecb23068e92f

Contents?: true

Size: 161 Bytes

Versions: 6

Compression:

Stored size: 161 Bytes

Contents

class String
  # Taken from activesupport.
  def strip_heredoc
    gsub(/^#{scan(/^[ \t]*(?=\S)/).min}/, ''.freeze)
  end

  def lines
    split('\n')
  end
end

Version data entries

6 entries across 4 versions & 1 rubygems

Version Path
chef-12.11.18-universal-mingw32 acceptance/top-cookbooks/test_run/learn-the-basics-ubuntu/cookbooks/workflow/libraries/string_helpers.rb
chef-12.11.18-universal-mingw32 acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/libraries/string_helpers.rb
chef-12.11.18 acceptance/top-cookbooks/test_run/learn-the-basics-ubuntu/cookbooks/workflow/libraries/string_helpers.rb
chef-12.11.18 acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/libraries/string_helpers.rb
chef-12.7.2 acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/libraries/string_helpers.rb
chef-12.7.2-universal-mingw32 acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/libraries/string_helpers.rb