class String
Overview
We are patching the String class and Number struct to extend the predicates
available. This will allow to add friendlier methods for validation cases.
Included Modules
Defined in:
amber/extensions/core.cr
alpha?(locale = "en-US")
alpha?,
alphanum?(locale = "en-US")
alphanum?,
base64?
base64?,
credit_card?
credit_card?,
domain?
domain?,
email?
email?,
excludes?(value)
excludes?,
hex?
hex?,
hex_color?
hex_color?,
ipv4?
ipv4?,
ipv6?
ipv6?,
lower?
lower?,
mac_address?
mac_address?,
md5?
md5?,
numeric?
numeric?,
phone?(locale = "en-US")
phone?,
slug?
slug?,
str?
str?,
time_string?
time_string?,
upper?
upper?,
url?
url?