Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- place_array.each do |array|
- categories_array= Array.new
- place_dict = Hash.new
- array.each_with_index do |line, index|
- #puts "#{line} #{index}"
- #puts "#{line} #{index}"
- place_dict[:name] = line if index == 0
- place_dict[:address] = line if index == 1
- place_dict[:times] = line if index == 2
- categories_array << line if (3..20) === index
- place_dict[:categories] = categories_array
- end
- place_pos << place_dict
- end
Add Comment
Please, Sign In to add comment