Method: Megam::NodeCollection#to_hash

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

#to_hashObject

Transform the ruby obj -> to a Hash



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

def to_hash
  index_hash = Hash.new
  self.each do |node|
    index_hash[node.node_name] = node.to_s
  end
  index_hash
end