addObject (object) Object
public
Required. You must implement this method to apply this mixin.
Attempts to add the passed object to the receiver if the object is not already present in the collection. If the object is present, this method has no effect.
If the passed object is of a type not supported by the receiver, then this method should raise an exception.
Parameters:
-
object
Object
- The object to add to the enumerable.
Returns:
-
Object
- the passed object
Please login to continue.