class RuboCop::Cop::RSpec::ExcessiveDocstringSpacing
def strip_excessive_whitespace(text)
-
text
(String
) --
def strip_excessive_whitespace(text) text .gsub(/[[:blank:]]{2,}/, ' ') .gsub(/\A[[:blank:]]|[[:blank:]]\z/, '') end
text
(String
)
--
def strip_excessive_whitespace(text) text .gsub(/[[:blank:]]{2,}/, ' ') .gsub(/\A[[:blank:]]|[[:blank:]]\z/, '') end