aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailbox/lib/action_mailbox/mail_ext/address_wrapping.rb
blob: 19eb624c1c0b045eb9afbb8fb7e6bc457e3bfaf8 (plain) (blame)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

module Mail
  class Address
    def self.wrap(address)
      address.is_a?(Mail::Address) ? address : Mail::Address.new(address)
    end
  end
end