fix incorrect example [ci skip]
This commit is contained in:
parent
d897255f8a
commit
f2af26dc81
@ -2,7 +2,7 @@ class Integer
|
||||
# Check whether the integer is evenly divisible by the argument.
|
||||
#
|
||||
# 0.multiple_of?(0) #=> true
|
||||
# 5.multiple_of?(5) #=> false
|
||||
# 6.multiple_of?(5) #=> false
|
||||
# 10.multiple_of?(2) #=> true
|
||||
def multiple_of?(number)
|
||||
number != 0 ? self % number == 0 : zero?
|
||||
|
Loading…
Reference in New Issue
Block a user