FIXNUM_P

Function FIXNUM_P 

Source
pub fn FIXNUM_P(obj: VALUE) -> bool
Expand description

Checks if the given object is a so-called Fixnum.

  • @param[in] obj An arbitrary ruby object.
  • @retval true obj is a Fixnum.
  • @retval false Anything else.
  • @note Fixnum was a thing in the 20th century, but it is rather an implementation detail today.