aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/integer/multiple.rb
diff options
context:
space:
mode:
authorKuldeep Aggarwal <kd.engineer@yahoo.co.in>2013-11-12 00:06:39 +0530
committerKuldeep Aggarwal <kd.engineer@yahoo.co.in>2013-11-12 00:06:39 +0530
commit7d4733ac4c7ddcc0e7b5164e3f62aed4b0a86ce0 (patch)
tree9b48b8fa524fef52320823f61d5c31dfd0c528f3 /activesupport/lib/active_support/core_ext/integer/multiple.rb
parentbf8b9925f407492894d32205e1f0a103563df4b9 (diff)
downloadrails-7d4733ac4c7ddcc0e7b5164e3f62aed4b0a86ce0.tar.gz
rails-7d4733ac4c7ddcc0e7b5164e3f62aed4b0a86ce0.tar.bz2
rails-7d4733ac4c7ddcc0e7b5164e3f62aed4b0a86ce0.zip
updated documentation for Integer
Diffstat (limited to 'activesupport/lib/active_support/core_ext/integer/multiple.rb')
-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