class String

def no_term

Returns:
  • (String) - The string with the last punctuation mark removed.
def no_term
  sub(/[.!?;,-]*$/, '')
end