aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-11-11 11:15:33 -0800
committerXavier Noria <fxn@hashref.com>2013-11-11 11:15:33 -0800
commit92f11ddd5068a8da35d0218aaac6b0eff2e7d284 (patch)
treea2541ff5b51d04ea9117fd04745062b9f274789a /activesupport
parent3bd3c96e37a08252fbaf0c6cd5886fc8daa17e17 (diff)
parent7d4733ac4c7ddcc0e7b5164e3f62aed4b0a86ce0 (diff)
downloadrails-92f11ddd5068a8da35d0218aaac6b0eff2e7d284.tar.gz
rails-92f11ddd5068a8da35d0218aaac6b0eff2e7d284.tar.bz2
rails-92f11ddd5068a8da35d0218aaac6b0eff2e7d284.zip
Merge pull request #12857 from kuldeepaggarwal/f-indentation
updated documentation for Integer [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/integer/multiple.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/integer/multiple.rb b/activesupport/lib/active_support/core_ext/integer/multiple.rb
index 7c6c2f1ca7..c668c7c2eb 100644
--- a/activesupport/lib/active_support/core_ext/integer/multiple.rb
+++ b/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