73 74 75
# File 'lib/string_cleaner.rb', line 73 def trim(chars = "") chars.size>0 ? gsub(/\A[#{chars}]+|[#{chars}]+\z/, "") : strip end