struct Marten::Emailing::Address

Overview

Represents an email address.

Included Modules

Defined in:

marten/emailing/address.cr
marten/template/ext/emailing/address.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(address : 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]