instance method
==
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
==( other )
Provides == function to the email. Only checks the actual address and ignores the name/phrase component
For Example
addr1 = TMail::Address.parse("My Address <mikel@lindsaar.net>") #=> "#<TMail::Address mikel@lindsaar.net>" addr2 = TMail::Address.parse("Another <mikel@lindsaar.net>") #=> "#<TMail::Address mikel@lindsaar.net>" addr1 == addr2 #=> true
Parameters
-
otherreq
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/address.rb, line 272
def ==( other )
other.respond_to? :spec and self.spec == other.spec
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/address.rb line 272
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::Address