
|
# File lib/rmail/address.rb, line 52
def <=>(other)
if !other.kind_of?(RMail::Address)
other = RMail::Address.new(other.to_str)
end
cmp = (@local || '') <=> (other.local || '')
if cmp == 0
cmp = (@domain || '') <=> (other.domain || '')
end
return cmp
end
|