instance method routes

Ruby on Rails 2.2.3

Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

routes()

This is still here from RFC 822, and is now obsolete per RFC2822 Section 4.

“When interpreting addresses, the route portion SHOULD be ignored.”

It is still here, so you can access it.

Routes return the route portion at the front of the email address, if any.

For Example:

email = TMail::Address.parse( "<@sa,@another:Mikel@me.com>")
=> #<TMail::Address Mikel@me.com>
email.to_s
=> "<@sa,@another:Mikel@me.com>"
email.routes
=> ["sa", "another"]
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/address.rb, line 204
    def routes
      @routes
    end

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

Defined in TMail::Address

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close