ary * int â new_aryary * 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"