方法
类公共方法
wrap(address) 链接
源代码: 显示 | 在 GitHub 上
# File actionmailbox/lib/action_mailbox/mail_ext/address_wrapping.rb, line 5 def self.wrap(address) address.is_a?(Mail::Address) ? address : Mail::Address.new(address) end
实例公共方法
==(other_address) 链接
源代码: 显示 | 在 GitHub 上
# File actionmailbox/lib/action_mailbox/mail_ext/address_equality.rb, line 5 def ==(other_address) other_address.is_a?(Mail::Address) && to_s == other_address.to_s end