method

to_i

v2_2_9 - Show latest stable - Class: Integer
to_i()
public

As int is already an Integer, all these methods simply return the receiver.

Synonyms are #to_int, #floor, #ceil, #truncate.