Class: Integer

Inherits:
Object
  • Object
show all
Defined in:
lib/validator/base_rule.rb

Overview

Expand Integer to add Min and Max values

Constant Summary collapse

N_BYTES =

:nodoc:

[42].pack('i').size
N_BITS =
N_BYTES * 8
MAX =
2 ** (N_BITS - 2) - 1
MIN =
- 1