method

to_i

ruby latest stable - Class: Integer
to_i()
public

Since int is already an Integer, returns self.

#to_int is an alias for #to_i.