Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v3.0.9.rc3
Fetching contributors…

Cannot retrieve contributors at this time

7 lines (6 sloc) 0.163 kB
class Integer
# Check whether the integer is evenly divisible by the argument.
def multiple_of?(number)
number != 0 ? self % number == 0 : zero?
end
end
Jump to Line
Something went wrong with that request. Please try again.