instance method ==

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available 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

other req
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/address.rb, line 238
    def ==( other )
      other.respond_to? :spec and self.spec == other.spec
    end

Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/address.rb line 238 · View on GitHub · Improve this page · Find usages on GitHub

Defined in TMail::Address

Type at least 2 characters to search.

↑↓ navigate · open · esc close