Skip to content

Commit a7a5f46

Browse files
committed
Add nodoc to Mail module [ci-skip]
`Mail` gem is an external gem and all methods extended by Rails are undocumented. However it's listed in API document page. It serves no purposes so it should be removed.
1 parent 90a272a commit a7a5f46

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

actionmailbox/lib/action_mailbox/mail_ext/address_equality.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
module Mail
4-
class Address
3+
module Mail # :nodoc: all
4+
class Address # :nodoc: all
55
def ==(other_address)
66
other_address.is_a?(Mail::Address) && to_s == other_address.to_s
77
end

actionmailbox/lib/action_mailbox/mail_ext/address_wrapping.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
module Mail
3+
module Mail # :nodoc: all
44
class Address
55
def self.wrap(address)
66
address.is_a?(Mail::Address) ? address : Mail::Address.new(address)

actionmailbox/lib/action_mailbox/mail_ext/addresses.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
module Mail
4-
class Message
3+
module Mail # :nodoc: all
4+
class Message # :nodoc: all
55
def from_address
66
address_list(header[:from])&.addresses&.first
77
end

actionmailbox/lib/action_mailbox/mail_ext/from_source.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
module Mail
3+
module Mail # :nodoc: all
44
def self.from_source(source)
55
Mail.new Mail::Utilities.binary_unsafe_to_crlf(source.to_s)
66
end

actionmailbox/lib/action_mailbox/mail_ext/recipients.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
module Mail
3+
module Mail # :nodoc: all
44
class Message
55
def recipients
66
Array(to) + Array(cc) + Array(bcc) + Array(header[:x_original_to]).map(&:to_s) +

0 commit comments

Comments
 (0)