abstract struct Number

Overview

The top-level number type.

Included Modules

Defined in:

denetmen/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 div?(n) #

the number divisibility (n) validation


[View source]
def negative? #

the negative number validation


[View source]
def positive? #

the positive number validation


[View source]
def zero? #

the number equals zero validation


[View source]