module Grip::Extensions::String

Direct including types

Defined in:

grip/extensions/string.cr

Instance Method Summary

Instance Method Detail

def alpha?(locale = "en-US") #

alpha characters validation


[View source]
def alphanum?(locale = "en-US") #

alpha numeric characters validation


[View source]
def base64? #

base64 validation


[View source]
def credit_card? #

credit card validation


[View source]
def domain? #

domain validation


[View source]
def email? #

email validation


[View source]
def excludes?(value) #

[View source]
def hex? #

hexadecimal validation


[View source]
def hex_color? #

hex color validation


[View source]
def ipv4? #

ip v4 validation


[View source]
def ipv6? #

ip v6 validation


[View source]
def lower? #

lower case validation


[View source]
def mac_address? #

mac address validation


[View source]
def md5? #

md5 validation


[View source]
def numeric? #

numeric characters validation


[View source]
def phone?(locale = "en-US") #

phone number validation


[View source]
def slug? #

slug validation


[View source]
def str? #

[View source]
def time_string? #

time string validation


[View source]
def upper? #

upper case validation


[View source]
def url? #

url validation


[View source]