Class: OnlyofficeTestrailWrapper::StringHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/onlyoffice_testrail_wrapper/helpers/string_helper.rb

Class Method Summary collapse

Class Method Details

.warnstrip!(string) ⇒ Object



6
7
8
9
# File 'lib/onlyoffice_testrail_wrapper/helpers/string_helper.rb', line 6

def warnstrip!(string)
  warn "Beginning or end of string has spaces! In: #{string}" unless string == string.strip
  string.strip
end