class method self.parse

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.parse( str )

Sometimes you need to parse an address, TMail can do it for you and provide you with a fairly robust method of detecting a valid address.

Takes in a string, returns a TMail::Address object.

Raises a TMail::SyntaxError on invalid email format

Parameters

str req
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/address.rb, line 83
    def Address.parse( str )
      Parser.parse :ADDRESS, special_quote_address(str)
    end

Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/address.rb line 83 · 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