struct Velvet::Validation

Overview

Validation constraints

Defined in:

velvet/schema.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(min : Float64 | Nil = nil, max : Float64 | Nil = nil, pattern : Regex | Nil = nil) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(min _min = @min, max _max = @max, pattern _pattern = @pattern) #

[View source]
def max : Float64 | Nil #

def min : Float64 | Nil #

def pattern : Regex | Nil #