ruby-changes:49806
From: kazu <ko1@a...>
Date: Thu, 18 Jan 2018 21:54:23 +0900 (JST)
Subject: [ruby-changes:49806] kazu:r61934 (trunk): [DOC] Add `Array#{append, prepend}` to call-seq [ci skip]
kazu 2018-01-18 21:54:18 +0900 (Thu, 18 Jan 2018) New Revision: 61934 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61934 Log: [DOC] Add `Array#{append,prepend}` to call-seq [ci skip] Modified files: trunk/array.c Index: array.c =================================================================== --- array.c (revision 61933) +++ array.c (revision 61934) @@ -947,6 +947,7 @@ rb_ary_cat(VALUE ary, const VALUE *argv, https://github.com/ruby/ruby/blob/trunk/array.c#L947 /* * call-seq: * ary.push(obj, ... ) -> ary + * ary.append(obj, ... ) -> ary * * Append --- Pushes the given object(s) on to the end of this array. This * expression returns the array itself, so several appends @@ -1169,6 +1170,7 @@ ary_ensure_room_for_unshift(VALUE ary, i https://github.com/ruby/ruby/blob/trunk/array.c#L1170 /* * call-seq: * ary.unshift(obj, ...) -> ary + * ary.prepend(obj, ...) -> ary * * Prepends objects to the front of +self+, moving other elements upwards. * See also Array#shift for the opposite effect. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/