Method: Megam::CSARCollection#<<
- Defined in:
- lib/megam/core/csar_collection.rb
#<<(*args) ⇒ Object Also known as: push
42 43 44 45 46 47 48 49 |
# File 'lib/megam/core/csar_collection.rb', line 42 def <<(*args) args.flatten.each do |a| is_megam_csar(a) @csars << a @csars_by_name[a.name] = @csars.length - 1 end self end |