This commit is contained in:
Burdette Lamar 2024-08-30 21:23:03 -05:00 коммит произвёл GitHub
Родитель eef2121cf3
Коммит 2d944dde70
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1878,6 +1878,7 @@ static VALUE rb_ary_aref2(VALUE ary, VALUE b, VALUE e);
* # Raises TypeError (no implicit conversion of Symbol into Integer):
* a[:foo]
*
* Related: see {Methods for Fetching}[rdoc-ref:Array@Methods+for+Fetching].
*/
VALUE
@ -8576,7 +8577,7 @@ rb_ary_deconstruct(VALUE ary)
*
* These methods do not modify +self+.
*
* - #[]: Returns one or more elements.
* - #[], #slice: Returns consecutive elements as determined by a given argument.
* - #fetch: Returns the element at a given offset.
* - #first: Returns one or more leading elements.
* - #last: Returns one or more trailing elements.
@ -8598,7 +8599,6 @@ rb_ary_deconstruct(VALUE ary)
* - #take: Returns leading elements as determined by a given index.
* - #drop_while: Returns trailing elements as determined by a given block.
* - #take_while: Returns leading elements as determined by a given block.
* - #slice: Returns consecutive elements as determined by a given argument.
* - #sort: Returns all elements in an order determined by <tt><=></tt> or a given block.
* - #reverse: Returns all elements in reverse order.
* - #compact: Returns an array containing all non-+nil+ elements.