aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-04-13 09:59:01 -0300
committerSebastian Martinez <sebastian@wyeworks.com>2011-04-13 09:59:01 -0300
commitb2cb99125138bcec3206562a1447991bb3fef63d (patch)
treec6d02f87b256400c7b88c846eb16da073aad2000
parentdbf32eb6ca1c0666c6826992af1d986d0e81b2c3 (diff)
downloadrails-b2cb99125138bcec3206562a1447991bb3fef63d.tar.gz
rails-b2cb99125138bcec3206562a1447991bb3fef63d.tar.bz2
rails-b2cb99125138bcec3206562a1447991bb3fef63d.zip
Removed Object#among? from guides
-rw-r--r--railties/guides/source/active_support_core_extensions.textile12
1 files changed, 2 insertions, 10 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile
index 6e65771b1d..4cedba1d4d 100644
--- a/railties/guides/source/active_support_core_extensions.textile
+++ b/railties/guides/source/active_support_core_extensions.textile
@@ -442,9 +442,9 @@ require_library_or_gem('mysql')
NOTE: Defined in +active_support/core_ext/kernel/requires.rb+.
-h4. +in?+ and +among?+
+h4. +in?+
-The predicate +in?+ tests if an object is included in another object, and the predicate +among?+ tests if an object is included in a list of objects which will be passed as arguments.
+The predicate +in?+ tests if an object is included in another object.
Examples of +in?+:
@@ -454,14 +454,6 @@ Examples of +in?+:
25.in?(30..50) # => false
</ruby>
-Examples of +among?+:
-
-<ruby>
- 1.among?(1,2,3) # => true
- 5.among?(1,2,3) # => false
- [1,2,3].among?([1,2,3], 2, [3,4,5]) # => true
-</ruby>
-
NOTE: Defined in +active_support/core_ext/object/inclusion.rb+.
h3. Extensions to +Module+