Sha256: 2a1c8e3ec971febd3febd7178f7ac94faf867bd45bd7464ffc7c961821ffd714
Contents?: true
Size: 422 Bytes
Versions: 3
Compression:
Stored size: 422 Bytes
Contents
module Aruba module Matchers module Base # Provide #indent_multiline_message helper method. # # @api private module MessageIndenter module_function def indent_multiline_message(message) message = message.sub(/\n+\z/, '') message.lines.map do |line| line =~ /\S/ ? ' ' + line : line end.join end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems