instance method
name=
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available 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
-
strreq
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/address.rb, line 179
def name=( str )
@name = str
@name = nil if str and str.empty?
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/address.rb line 179
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::Address