oh, << is not a bangoperator in ruby
This commit is contained in:
parent
fe25a2a85b
commit
e4d29f32e6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user