Enhanced RDoc for Array
This commit is contained in:
parent
d29de7b31b
commit
a50750c8a9
Notes:
git
2020-07-22 07:07:43 +09:00
8
array.c
8
array.c
@ -5461,15 +5461,9 @@ rb_ary_concat(VALUE x, VALUE y)
|
||||
*
|
||||
* ---
|
||||
*
|
||||
* When argument +n+ is given, returns a new \Array
|
||||
* built by concatenating +n+ copies of +self+.
|
||||
*
|
||||
* If +n+ is positive, returns the concatenation of +n+ repetitions of +self+:
|
||||
* When argument +n+ is given, returns a new array built by concatenating the +int+ copies of +self+:
|
||||
* a = ['x', 'y']
|
||||
* a * 3 # => ["x", "y", "x", "y", "x", "y"]
|
||||
*
|
||||
* If +n+ is zero, returns an new empty \Array:
|
||||
* a = [0, 1]
|
||||
* a * 0 # => []
|
||||
*
|
||||
* ---
|
||||
|
Loading…
x
Reference in New Issue
Block a user