ruby-changes:28357
From: hsbt <ko1@a...>
Date: Mon, 22 Apr 2013 18:35:48 +0900 (JST)
Subject: [ruby-changes:28357] hsbt:r40409 (trunk): enhanced Array#delete_if docs by johnnymugs
hsbt 2013-04-22 18:35:27 +0900 (Mon, 22 Apr 2013) New Revision: 40409 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40409 Log: enhanced Array#delete_if docs by johnnymugs Modified files: trunk/array.c Index: array.c =================================================================== --- array.c (revision 40408) +++ array.c (revision 40409) @@ -3021,8 +3021,8 @@ rb_ary_reject(VALUE ary) https://github.com/ruby/ruby/blob/trunk/array.c#L3021 * * If no block is given, an Enumerator is returned instead. * - * a = [ "a", "b", "c" ] - * a.delete_if {|x| x >= "b" } #=> ["a"] + * scores = [ 97, 42, 75 ] + * scores.delete_if {|score| score < 80 } #=> [97] */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/