instance method
quote_token
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
quote_token( str )
If the string supplied has TOKEN unsafe characters in it, will return the string quoted in double quotes, otherwise returns the string unmodified
Parameters
-
strreq
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/utils.rb, line 146
def quote_token( str )
(TOKEN_UNSAFE === str) ? dquote(str) : str
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/utils.rb line 146
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::TextUtils