NAME

Devel::Ladybug::Subnet - Overloaded Subnet object

SYNOPSIS

use Devel::Ladybug::Subnet;

my $addr = Devel::Ladybug::Subnet->new("10.0.0.0/24");

DESCRIPTION

Simple class to represent subnets as strings.

Extends Devel::Ladybug::Str.

PUBLIC CLASS METHODS

  • $class->assert(@rules)

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

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

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

    my $subnet = Devel::Ladybug::Subnet->new("10.0.0.0/24");

SEE ALSO

Devel::Ladybug::Str, Devel::Ladybug::Array.

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