Permalink
Browse files

AS guide: removes docs for even? and odd?, no longer in AS

  • Loading branch information...
1 parent cdeaf0f commit 18ce0f517d5d454fc141326c0d83f831b36a3000 @fxn fxn committed Nov 9, 2009
Showing with 0 additions and 13 deletions.
  1. +0 −13 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:

0 comments on commit 18ce0f5

Please sign in to comment.