aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/active_support_core_extensions.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-11-09 23:29:17 +0100
committerXavier Noria <fxn@hashref.com>2009-11-09 23:29:17 +0100
commit18ce0f517d5d454fc141326c0d83f831b36a3000 (patch)
tree26a713f697ebf17d84f7c1a45b4a50513051f6ab /railties/guides/source/active_support_core_extensions.textile
parentcdeaf0f4dba691ef48db5ec8a08a22181b447a3d (diff)
downloadrails-18ce0f517d5d454fc141326c0d83f831b36a3000.tar.gz
rails-18ce0f517d5d454fc141326c0d83f831b36a3000.tar.bz2
rails-18ce0f517d5d454fc141326c0d83f831b36a3000.zip
AS guide: removes docs for even? and odd?, no longer in AS
Diffstat (limited to 'railties/guides/source/active_support_core_extensions.textile')
-rw-r--r--railties/guides/source/active_support_core_extensions.textile13
1 files changed, 0 insertions, 13 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile
index ea1c0214d0..a30d18eaf0 100644
--- a/railties/guides/source/active_support_core_extensions.textile
+++ b/railties/guides/source/active_support_core_extensions.textile
@@ -825,19 +825,6 @@ The method +multiple_of?+ tests whether an integer is multiple of the argument:
WARNING: Due the way it is implemented the argument must be nonzero, otherwise +ZeroDivisionError+ is raised.
-h4. +even?+ and +odd?+
-
-Integers in Ruby 1.8.7 and above respond to +even?+ and +odd?+, Active Support defines them for older versions:
-
-<ruby>
--1.even? # => false
--1.odd? # => true
- 0.even? # => true
- 0.odd? # => false
- 2.even? # => true
- 2.odd? # => false
-</ruby>
-
h4. +ordinalize+
The method +ordinalize+ returns the ordinal string corresponding to the receiver integer: