Permalink
Browse files

Merge pull request #12857 from kuldeepaggarwal/f-indentation

updated documentation for Integer [ci skip]
  • Loading branch information...
fxn committed Nov 11, 2013
2 parents 3bd3c96 + 7d4733a commit 92f11ddd5068a8da35d0218aaac6b0eff2e7d284
Showing with 3 additions and 3 deletions.
  1. +3 −3 activesupport/lib/active_support/core_ext/integer/multiple.rb
@@ -1,9 +1,9 @@
class Integer
# Check whether the integer is evenly divisible by the argument.
#
- # 0.multiple_of?(0) #=> true
- # 6.multiple_of?(5) #=> false
- # 10.multiple_of?(2) #=> true
+ # 0.multiple_of?(0) # => true
+ # 6.multiple_of?(5) # => false
+ # 10.multiple_of?(2) # => true
def multiple_of?(number)
number != 0 ? self % number == 0 : zero?
end

0 comments on commit 92f11dd

Please sign in to comment.