Skip to content
This repository
tag: v3.0.8.rc2
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 7 lines (6 sloc) 0.163 kb
1 2 3 4 5 6
class Integer
  # Check whether the integer is evenly divisible by the argument.
  def multiple_of?(number)
    number != 0 ? self % number == 0 : zero?
  end
end
Something went wrong with that request. Please try again.