Permalink
Browse files

updated documentation for Integer

  • Loading branch information...
1 parent bf8b992 commit 7d4733ac4c7ddcc0e7b5164e3f62aed4b0a86ce0 @kuldeepaggarwal kuldeepaggarwal committed Nov 11, 2013
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 7d4733a

Please sign in to comment.