diff options
author | Xavier Noria <fxn@hashref.com> | 2009-11-09 23:30:31 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-11-09 23:30:31 +0100 |
commit | dcff121c0940d781da871a6bf9244dd1a0eeb43e (patch) | |
tree | f2cf29452ab7ac22cdbfe429dc8de0b353168753 /railties/guides/source | |
parent | 18ce0f517d5d454fc141326c0d83f831b36a3000 (diff) | |
download | rails-dcff121c0940d781da871a6bf9244dd1a0eeb43e.tar.gz rails-dcff121c0940d781da871a6bf9244dd1a0eeb43e.tar.bz2 rails-dcff121c0940d781da871a6bf9244dd1a0eeb43e.zip |
AS guide: removes docs for none?, no longer in AS
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 10 |
1 files changed, 0 insertions, 10 deletions
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]} </ruby> -h4. +none?+ - -The method +none?+ is the negation of +any?+. It yields elements to a block and returns true if none of them matches: - -<ruby> -success = responses.none? {|r| r.status / 100 == 5} -</ruby> - -Ruby 1.8.7 and later already have +none?+, Active Support defines it for previous versions. - h3. Extensions to +Array+ h4. Accessing |