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-8.0.0 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.2.2 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.1.5 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-8.0.0.rc2 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.2.1.2 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.1.4.2 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.0.8.6 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-6.1.7.10 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-8.0.0.rc1 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-6.1.7.9 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.2.1.1 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.1.4.1 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.0.8.5 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-8.0.0.beta1 lib/action_mailbox/mail_ext/address_wrapping.rb
omg-actionmailbox-8.0.0.alpha9 lib/action_mailbox/mail_ext/address_wrapping.rb
omg-actionmailbox-8.0.0.alpha8 lib/action_mailbox/mail_ext/address_wrapping.rb
omg-actionmailbox-8.0.0.alpha7 lib/action_mailbox/mail_ext/address_wrapping.rb
omg-actionmailbox-8.0.0.alpha4 lib/action_mailbox/mail_ext/address_wrapping.rb
omg-actionmailbox-8.0.0.alpha3 lib/action_mailbox/mail_ext/address_wrapping.rb
actionmailbox-7.1.4 lib/action_mailbox/mail_ext/address_wrapping.rb