Method: Megam::OrganizationsCollection#<<

Defined in:
lib/megam/core/organizations_collection.rb

#<<(*args) ⇒ Object Also known as: push



41
42
43
44
45
46
47
48
# File 'lib/megam/core/organizations_collection.rb', line 41

def <<(*args)
  args.flatten.each do |a|
    is_megam_organizations(a)
    @organizations << a
    @organizations_by_name[a.name] =@organizations.length - 1
  end
  self
end