enum Assert::Assertions::Ip::IPVersion

Overview

Which IP version to use to validate against.

Defined in:

assertions/ip.cr

Enum Members

IPV4 = 0

Matches IPv4 format.

IPV6 = 1

Matches IPv6 format.

Instance Method Summary

Instance Method Detail

def get_pattern : Regex #

Returns the Regex pattern for self.


[View source]
def ipv4? #

[View source]
def ipv6? #

[View source]