Merge pull request #46723 from okuramasafumi/nodoc-mail
Add nodoc to `Mail` module [ci-skip]
This commit is contained in:
commit
c8c7a5d492
@ -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) +
|
||||
|
Loading…
Reference in New Issue
Block a user