Sha256: e2b3c40b0cee9c946a0d5e64e58a987220917f9e8de4c243317e8775bd88b8e6

Contents?: true

Size: 178 Bytes

Versions: 147

Compression:

Stored size: 178 Bytes

Contents

# 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

Version data entries

147 entries across 142 versions & 11 rubygems

Version Path
actionmailbox-6.0.4.8 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-6.1.5 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.0.2.3 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-6.1.4.7 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-6.0.4.7 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.0.2.2 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-6.1.4.6 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-6.0.4.6 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-6.0.4.5 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-6.1.4.5 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.0.2.1 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.0.2 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.0.1 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.0.0 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-6.1.4.4 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-6.0.4.4 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.0.0.rc3 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-6.1.4.3 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-6.0.4.3 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-6.0.4.2 lib/action_mailbox/mail_ext/address_wrapping.rb