class Object
Public Instance Methods
maplists(list1, list2)
click to toggle source
# File lib/etblog.rb, line 7 def maplists(list1, list2) hash = {} index2 = -1 list1.each do |item| index2 += 1 hash[item] = list2[index2] end return hash end