instance method hash

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available 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.3/tmail/address.rb, line 284
    def hash
      @local.hash ^ @domain.hash
    end

Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/address.rb line 284 · 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