Skip to content
Browse files

Revert the guide after removing varargs from `in?`.

  • Loading branch information...
1 parent 88eb1a8 commit 275a064cef9e2cd8112f6d96e8c571e2e69bfb98 @BMorearty BMorearty committed May 1, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 guides/source/active_support_core_extensions.md
View
3 guides/source/active_support_core_extensions.md
@@ -476,12 +476,11 @@ NOTE: Defined in `active_support/core_ext/kernel/reporting.rb`.
### `in?`
-The predicate `in?` tests if an object is included in another object or a list of objects. An `ArgumentError` exception will be raised if a single argument is passed and it does not respond to `include?`.
+The predicate `in?` tests if an object is included in another object. An `ArgumentError` exception will be raised if the argument passed does not respond to `include?`.
Examples of `in?`:
```ruby
-1.in?(1,2) # => true
1.in?([1,2]) # => true
"lo".in?("hello") # => true
25.in?(30..50) # => false

0 comments on commit 275a064

Please sign in to comment.
Something went wrong with that request. Please try again.