Method: Parse::CollectionProxy#+

Defined in:
lib/parse/model/associations/collection_proxy.rb

#+(other_ary) ⇒ Array

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

Examples:

[ 1, 2, 3 ] + [ 4, 5 ] #=> [ 1, 2, 3, 4, 5 ]

Parameters:

Returns:

  • (Array)

    concatenated array



209
210
211
# File 'lib/parse/model/associations/collection_proxy.rb', line 209

def +(other_ary)
  collection + [other_ary].flatten.to_a
end