*

ary * int â new_ary
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"
doc_ruby_on_rails
2015-03-30 14:39:22
Comments
Leave a Comment

Please login to continue.