From dcff121c0940d781da871a6bf9244dd1a0eeb43e Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Mon, 9 Nov 2009 23:30:31 +0100 Subject: AS guide: removes docs for none?, no longer in AS --- railties/guides/source/active_support_core_extensions.textile | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'railties') diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index a30d18eaf0..14b60cdd2e 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -958,16 +958,6 @@ If an optional block is given +many?+ only takes into account those elements tha @see_more = videos.many? {|video| video.category == params[:category]} -h4. +none?+ - -The method +none?+ is the negation of +any?+. It yields elements to a block and returns true if none of them matches: - - -success = responses.none? {|r| r.status / 100 == 5} - - -Ruby 1.8.7 and later already have +none?+, Active Support defines it for previous versions. - h3. Extensions to +Array+ h4. Accessing -- cgit v1.2.3