Skip to Content Skip to Search
Methods
#
W

Class Public methods

wrap(address)

# File actionmailbox/lib/action_mailbox/mail_ext/address_wrapping.rb, line 5
    def self.wrap(address)
      ActionMailbox.deprecator.warn(<<~MSG.squish)
        Mail::Address.wrap is deprecated and will be removed in Rails 8.2.
      MSG
      address.is_a?(Mail::Address) ? address : Mail::Address.new(address)
    end

Instance Public methods

==(other_address)

# File actionmailbox/lib/action_mailbox/mail_ext/address_equality.rb, line 5
def ==(other_address)
  other_address.is_a?(Mail::Address) && to_s == other_address.to_s
end