instance method name=

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

name=( str )

Setter method for the name or phrase of the email

For Example:

email = TMail::Address.parse("mikel@lindsaar.net")
email.name
#=> nil
email.name = "Mikel Lindsaar"
email.to_s
#=> "Mikel Lindsaar <mikel@me.com>"

Parameters

str req
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/address.rb, line 145
    def name=( str )
      @name = str
      @name = nil if str and str.empty?
    end

Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/address.rb line 145 · View on GitHub · Improve this page · Find usages on GitHub

Defined in TMail::Address

Type at least 2 characters to search.

↑↓ navigate · open · esc close