+

ary + other_ary â new_ary
Instance Public methods

Concatenation â Returns a new array built by concatenating the two arrays together to produce a third array.

[ 1, 2, 3 ] + [ 4, 5 ]    #=> [ 1, 2, 3, 4, 5 ]
a = [ "a", "b", "c" ]
a + [ "d", "e", "f" ]
a                         #=> [ "a", "b", "c", "d", "e", "f" ]

See also #concat.

doc_ruby_on_rails
2015-03-30 14:43:51
Comments
Leave a Comment

Please login to continue.