Method: Array#concat
- Defined in:
- array.c
#concat(other_array) ⇒ Array
Appends the elements in other_array to self.
[ "a", "b" ].concat( ["c", "d"] ) #=> [ "a", "b", "c", "d" ]
2481 2482 2483 |
# File 'array.c', line 2481 VALUE rb_ary_concat(x, y) VALUE x, y; |