method

to_i

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

Since int is already an Integer, returns self.

#to_int is an alias for #to_i.