module TarkaMatchers::Helpers::Expectation::Common

Constants

NEWLINE
SGR

Public Instance Methods

clean!(string) click to toggle source
# File lib/tarka_matchers/helpers/expectation/common.rb, line 8
def clean! string
        string.gsub!(SGR,'') unless @keep_sgrs
        string.gsub!(NEWLINE,'') unless @keep_newlines
        string
end