Sha256: de7b0151c3a4caa867666813d29b79282a54fea357a91bac0b39b9a154cab72f

Contents?: true

Size: 251 Bytes

Versions: 1

Compression:

Stored size: 251 Bytes

Contents

# Monkeypatch to remove indentation from the beginning of heredoc strings used in specs
# so that we can include them in our code in a more readable way
class String
  def heredoc_unindent
    gsub(/^#{ scan(/^\s*/).min_by(&:length) }/, "")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pluginscan-0.9.0 spec/support/heredoc_helper.rb