method

modulo

ruby latest stable - Class: Integer
modulo(p1)
public

Returns int modulo other.

See Numeric#divmod for more information.