lib/berkeley_library/tind/mapping/misc.rb
# manipulate original values
# Delete characters when occuring at the end of a subfield value
manipulate original values
Delete characters when occuring at the end of a subfield value
manipulate original values Delete characters when occuring at the end of a subfield value
def rm_punctuation(str)
          return str if str.empty? || str.nil?
          punctuations = Config.punctuations
          char = str[-1]
          return str unless punctuations.include? char
          rm_punctuation(str.delete_suffix!(char))
        end
def rm_punctuation ( str ) return str if str . empty? || str . nil? punctuations = Config . punctuations char = str [ - 1 ] return str unless punctuations . include? char rm_punctuation ( str . delete_suffix! ( char ) ) end
manipulate original values
Delete characters when occuring at the end of a subfield value
manipulate original values Delete characters when occuring at the end of a subfield value
str
<not_specific>