Return a TMail::Addresses instance for each entry in the "Cc:" field of the mail object header.
If the "Cc:" field does not exist, will return nil by default or the value you pass as the optional parameter.
Example:
mail = TMail::Mail.new mail.cc_addrs #=> nil mail.cc_addrs([]) #=> [] mail.cc = "Mikel <mikel@me.org>, another Mikel <mikel@you.org>" mail.cc_addrs #=> [#<TMail::Address mikel@me.org>, #<TMail::Address mikel@you.org>]
Source Code
# File action_mailer/vendor/tmail-1.2.2/tmail/interface.rb, line 190 def cc_addrs( default = nil ) if h = @header['cc'] h.addrs else default end end
<code/>and<pre/>for code samples.