Merge pull request #46723 from okuramasafumi/nodoc-mail

Add nodoc to `Mail` module [ci-skip]
This commit is contained in:
Eileen M. Uchitelle 2022-12-14 09:01:51 -05:00 committed by GitHub
commit c8c7a5d492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

@ -1,7 +1,7 @@
# frozen_string_literal: true
module Mail
class Address
module Mail # :nodoc: all
class Address # :nodoc: all
def ==(other_address)
other_address.is_a?(Mail::Address) && to_s == other_address.to_s
end

@ -1,6 +1,6 @@
# frozen_string_literal: true
module Mail
module Mail # :nodoc: all
class Address
def self.wrap(address)
address.is_a?(Mail::Address) ? address : Mail::Address.new(address)

@ -1,7 +1,7 @@
# frozen_string_literal: true
module Mail
class Message
module Mail # :nodoc: all
class Message # :nodoc: all
def from_address
address_list(header[:from])&.addresses&.first
end

@ -1,6 +1,6 @@
# frozen_string_literal: true
module Mail
module Mail # :nodoc: all
def self.from_source(source)
Mail.new Mail::Utilities.binary_unsafe_to_crlf(source.to_s)
end

@ -1,6 +1,6 @@
# frozen_string_literal: true
module Mail
module Mail # :nodoc: all
class Message
def recipients
Array(to) + Array(cc) + Array(bcc) + Array(header[:x_original_to]).map(&:to_s) +