Skip to content

Commit 7d4733a

Browse files
updated documentation for Integer
1 parent bf8b992 commit 7d4733a

File tree

1 file changed

+3
-3
lines changed
  • activesupport/lib/active_support/core_ext/integer

1 file changed

+3
-3
lines changed

activesupport/lib/active_support/core_ext/integer/multiple.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
class Integer
22
# Check whether the integer is evenly divisible by the argument.
33
#
4-
# 0.multiple_of?(0) #=> true
5-
# 6.multiple_of?(5) #=> false
6-
# 10.multiple_of?(2) #=> true
4+
# 0.multiple_of?(0) # => true
5+
# 6.multiple_of?(5) # => false
6+
# 10.multiple_of?(2) # => true
77
def multiple_of?(number)
88
number != 0 ? self % number == 0 : zero?
99
end

0 commit comments

Comments
 (0)