oh, << is not a bangoperator in ruby

This commit is contained in:
Felix Van der Jeugt 2016-04-10 11:11:37 +02:00
parent fe25a2a85b
commit e4d29f32e6

View File

@ -25,10 +25,10 @@ when '0'
name = name.strip.chomp("'").chomp('"').reverse name = name.strip.chomp("'").chomp('"').reverse
.chomp("'").chomp('"').reverse unless name.nil? .chomp("'").chomp('"').reverse unless name.nil?
email.downcase! email.downcase!
if name.nil? or email.include? name if name.nil? or email.include? name.downcase
contacts[email] = Set.new unless contacts.has_key? email contacts[email] = Set.new unless contacts.has_key? email
else else
contacts[email] << name contacts[email] <<= name
end end
end end
end end