In Files
- net/imap.rb
Class/Module Index
- Net
- Net::IMAP
- Net::IMAP::BadResponseError
- Net::IMAP::BodyTypeAttachment
- Net::IMAP::BodyTypeBasic
- Net::IMAP::BodyTypeExtension
- Net::IMAP::BodyTypeMessage
- Net::IMAP::BodyTypeMultipart
- Net::IMAP::BodyTypeText
- Net::IMAP::ByeResponseError
- Net::IMAP::CramMD5Authenticator
- Net::IMAP::DataFormatError
- Net::IMAP::DigestMD5Authenticator
- Net::IMAP::Error
- Net::IMAP::FlagCountError
- Net::IMAP::LoginAuthenticator
- Net::IMAP::NoResponseError
- Net::IMAP::NumValidator
- Net::IMAP::OpenSSL
- Net::IMAP::PlainAuthenticator
- Net::IMAP::ResponseError
- Net::IMAP::ResponseParseError
Net::IMAP::NumValidator
Common validators of number and nz_number types
Public Class Methods
ensure_number(num)
Ensure argument is ‘number’ or raise DataFormatError
# File net/imap.rb, line 1636 def ensure_number(num) return if valid_number?(num) msg = "number must be unsigned 32-bit integer: #{num}" raise DataFormatError, msg end
ensure_nz_number(num)
Ensure argument is ‘nz_number’ or raise DataFormatError
# File net/imap.rb, line 1644 def ensure_nz_number(num) return if valid_nz_number?(num) msg = "nz_number must be non-zero unsigned 32-bit integer: #{num}" raise DataFormatError, msg end