struct

Exu::Domain::AliasName

Inherits Struct < Value < Object

Value object representing an alias name (standard alias or catch-all "*"). Prevents directory traversal and dangerous characters.

Constants

ALIAS_REGEX = /^[a-zA-Z0-9._%+-]+$/

Constructors

new(raw : String)
Source

Class methods

valid?(raw : String) : Bool

Validates alias name syntax

Source

Instance methods

==(other : AliasName) : Bool
Source
==(other : String) : Bool
Source
catch_all?
Source
hash(hasher)

See Object#hash(hasher)

Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
value
Source