Net::IMAP::NumValidator
module Net::IMAP::NumValidator
Common validators of number and nz_number types
Public Class Methods
Ensure argument is 'number' or raise DataFormatError
# File lib/net/imap.rb, line 1633 def ensure_number(num) return if valid_number?(num) msg = "number must be unsigned 32-bit integer: #{num}"