From 62c62bc360bf1ce3db0a11be47a974fcc0777362 Mon Sep 17 00:00:00 2001 From: Brian Morearty Date: Wed, 1 May 2013 04:51:59 -0700 Subject: Revert the guide after removing varargs from `in?`. --- guides/source/active_support_core_extensions.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'guides') diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index 54f4b79b3b..6daad33dea 100644 --- a/guides/source/active_support_core_extensions.md +++ b/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 -- cgit v1.2.3