ary * int â new_ary
ary * str â new_string
ary * str â new_string
Instance Public methods
Repetition â With a String argument, equivalent to
ary.join(str)
.
Otherwise, returns a new array built by concatenating the int
copies of self
.
[ 1, 2, 3 ] * 3 #=> [ 1, 2, 3, 1, 2, 3, 1, 2, 3 ] [ 1, 2, 3 ] * "," #=> "1,2,3"
Please login to continue.