module Amber::Extensions::Number

Direct including types

Defined in:

amber/extensions/number.cr

Instance Method Summary

Instance Method Detail

def above?(n) #

the number above n value validation


[View source]
def below?(n) #

the number below n value validation


[View source]
def between?(range) #

[View source]
def div?(n) #

the number divisibility (n) validation


[View source]
def gteq?(num) #

[View source]
def lt?(num) #

[View source]
def lteq?(num) #

[View source]
def negative? #

the negative number validation


[View source]
def positive? #

the positive number validation


[View source]
def self?(num) #

[View source]
def zero? #

the number equals zero validation


[View source]