NAME

Devel::Ladybug::IPv4Addr - Overloaded IPv4 address object class

SYNOPSIS

use Devel::Ladybug::IPv4Addr;

my $addr = Devel::Ladybug::IPv4Addr->new("127.0.0.1");

DESCRIPTION

Extends Devel::Ladybug::Str. Uses Data::Validate::IP to verify input.

PUBLIC CLASS METHODS

  • assert(Devel::Ladybug::Class $class: *@rules)

    Returns a new Devel::Ladybug::Type::IPv4Addr instance which encapsulates the received Devel::Ladybug::Subtype rules.

    create "YourApp::Example::" => {
      someAddr  => Devel::Ladybug::IPv4Addr->assert( subtype(...) ),
    
      # ...
    };
  • new(Devel::Ladybug::Class $class: Str $addr)

    Returns a new Devel::Ladybug::IPv4Addr instance which encapsulates the received value.

    my $object = Devel::Ladybug::IPv4Addr->new($addr);

SEE ALSO

Devel::Ladybug::Str, Data::Validate::IP

This file is part of Devel::Ladybug::Net.