using rstrip instead of gsub

This commit is contained in:
Harry Bomrah 2017-08-16 18:29:59 +08:00
parent 3433d67ba8
commit 701a2cca79
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class WritingConference
# title << self.year
title = title.join(', ')
title.gsub(/\s+/, "").chomp(",")
title.rstrip.chomp(",")
end
def duration