instance method spec

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

spec()

Returns the full specific address itself

For Example:

email = TMail::Address.parse("mikel@lindsaar.net")
email.address
#=> "mikel@lindsaar.net"
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/address.rb, line 249
    def spec
      s = self.local
      d = self.domain
      if s and d
        s + '@' + d
      else
        s
      end
    end

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