struct

Marten::Emailing::Address

Inherits Marten::Template::Object::Auto < Marten::Template::Object < Marten::Template::CanDefineTemplateAttributes < Struct < Value < Object

Represents an email address.

Constructors

new(address : String, name : String | Nil = nil)
Source

Class methods

valid?(value : String) : Bool

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

Source

Instance methods

==(other : self)
Source
address

Returns the address part of the email address.

Source
name

Returns the name part of the email address.

Source
to_s(io)
Source