Method: Cathode::ObjectCollection#delete

Defined in:
lib/cathode/object_collection.rb

#delete(name) ⇒ ObjectCollection

Delets an object from the collection by name.

Parameters:

  • name (Symbol)

    The name of the object to remove

Returns:



38
39
40
41
# File 'lib/cathode/object_collection.rb', line 38

def delete(name)
  objects.delete find(name)
  self
end