class Apia::ObjectSet

Public Instance Methods

add_object(object) click to toggle source
# File lib/apia/object_set.rb, line 8
def add_object(object)
  return self if include?(object)

  self << object
  if object.respond_to?(:collate_objects)
    # Attempt to add any other objects if the object responds to
    # collate_objects.
    object.collate_objects(self)
  end
  self
end