NAME
OP::Domain
VERSION
$Id: //depotit/tools/source/snitchd-0.20/lib/OP/Domain.pm#3 $
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(optional()), # ... };
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.