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