Method: Cequel::Record::List#push

Defined in:
lib/cequel/record/collection.rb

#push(*objects) ⇒ List Also known as: <<, append

Push (append) one or more elements to the end of the list.

Parameters:

  • objects

    value(s) to add to the end of the list

Returns:

Since:

  • 1.0.0



300
301
302
303
304
# File 'lib/cequel/record/collection.rb', line 300

def push(*objects)
  objects.map! { |object| cast_element(object) }
  to_update { updater.list_append(column_name, objects) }
  to_modify { super }
end