Mega Code Archive

 
Categories / Ruby / Number
 

An integer with the kind_of method (this method is from the Object class)

# Integer honors the 0 (octal), 0b (binary), and 0x (hexadecimal) prefixes. x = 100 x.kind_of? Integer # => true