NAME
OP::IPv4Addr - Overloaded IPv4 address object class
SYNOPSIS
use OP::IPv4Addr;
my $addr = OP::IPv4Addr->new("127.0.0.1");
DESCRIPTION
Extends OP::Str. Uses Data::Validate::IP to verify input.
PUBLIC CLASS METHODS
assert(OP::Class $class: *@rules)
Returns a new OP::Type::IPv4Addr instance which encapsulates the received OP::Subtype rules.
create "OP::Example" => { someAddr => OP::IPv4Addr->assert( subtype(...) ), # ... };
new(OP::Class $class: Str $addr)
Returns a new OP::IPv4Addr instance which encapsulates the received value.
my $object = OP::IPv4Addr->new($addr);
SEE ALSO
This file is part of OP.