struct Marten::Emailing::Address


Represents an email address.

Included Modules

Defined in:



Class Method Summary

Instance Method Summary

Macros inherited from module Marten::Template::Object

template_attributes(*names) template_attributes

Constructor Detail

def : String, name : String | Nil = nil) #

[View source]

Class Method Detail

def self.valid?(value : String) : Bool #

Returns true of the passed string corresponds to a valid email address.

[View source]

Instance Method Detail

def ==(other : self) #

[View source]
def address : String #

Returns the address part of the email address.

[View source]
def name : String? #

Returns the name part of the email address.

[View source]
def to_s(io) #

[View source]