diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-04-05 03:52:58 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-04-05 03:52:58 +0000 |
commit | aa4af60aad5772458e8ba3bd08505781aeeb53a2 (patch) | |
tree | 22eadb1dc551f95e3150f803dc654eaa125544d9 /activesupport/lib/active_support/core_ext/integer/even_odd.rb | |
parent | 08318b8bcd32bae741e672899a33c6a7d52664c8 (diff) | |
download | rails-aa4af60aad5772458e8ba3bd08505781aeeb53a2.tar.gz rails-aa4af60aad5772458e8ba3bd08505781aeeb53a2.tar.bz2 rails-aa4af60aad5772458e8ba3bd08505781aeeb53a2.zip |
Improve documentation.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext/integer/even_odd.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/integer/even_odd.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/integer/even_odd.rb b/activesupport/lib/active_support/core_ext/integer/even_odd.rb index b53bcd066c..cfc6b4c6d6 100644 --- a/activesupport/lib/active_support/core_ext/integer/even_odd.rb +++ b/activesupport/lib/active_support/core_ext/integer/even_odd.rb @@ -3,12 +3,10 @@ module ActiveSupport #:nodoc: module Integer #:nodoc: # For checking if a fixnum is even or odd. # - # Examples: - # # 1.even? # => false # 1.odd? # => true # 2.even? # => true - # 2.odd? # => false + # 2.odd? # => false module EvenOdd def multiple_of?(number) self % number == 0 |