NAME
OP::Domain - Fully qualified domain name object
SYNOPSIS
use OP::Domain;
#
# A fully qualified domain name
#
my $domain = OP::Domain->new("example.com");
DESCRIPTION
Domain name object.
Extends OP::Str. Uses Data::Validate::Domain to verify input.
PUBLIC CLASS METHODS
assert(OP::Class $class: *@rules)
Returns a new OP::Type::Domain instance which encapsulates the received OP::Subtype rules.
create "OP::Example" => { someAddr => OP::Domain->assert( subtype( optional => true ) ), # ... };
new(OP::Class $class: Str $addr)
Returns a new OP::Domain instance which encapsulates the received value.
my $object = OP::Domain->new($addr);
SEE ALSO
OP::Str, Data::Validate::Domain
This file is part of OP::Net.