Этот коммит содержится в:
Mattia Roccoberton
2025-04-13 16:30:58 +02:00
родитель 6946b78e4c
Коммит 8cac91f299
4 изменённых файлов: 100 добавлений и 93 удалений

10
spec/support/string_clean_multiline.rb Обычный файл
Просмотреть файл

@@ -0,0 +1,10 @@
# frozen_string_literal: true
module StringCleanMultiline
refine String do
def clean_multiline
# Get rid of newlines and indentation spaces
strip.gsub(/\s*\n\s*/, "")
end
end
end