Skip to content
instance method

Integer#to_int

() -> ::Integer
to_int → self

Returns self (which is already an Integer).

See also #to_i #to_r #to_f #to_s also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0