method

to_int

ruby latest stable - Class: Integer
to_int()
public

Since int is already an Integer, returns self.

#to_int is an alias for #to_i.