Method: Megam::AssemblyCollection#to_hash

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

#to_hashObject

Transform the ruby obj -> to a Hash



105
106
107
108
109
110
111
# File 'lib/megam/core/assembly_collection.rb', line 105

def to_hash
  index_hash = Hash.new
  self.each do |assemblys|
    index_hash[assemblys.name] = assemblys.to_s
  end
  index_hash
end