instance method
hash
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
hash()
Provides a unique hash value for this record against the local and domain parts, ignores the name/phrase value
email = TMail::Address.parse("mikel@lindsaar.net") email.hash #=> 18767598
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/address.rb, line 250
def hash
@local.hash ^ @domain.hash
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/address.rb line 250
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::Address