S
Shaz
Is it possible to add to the name of a hash while running through an
iteration? What I'm trying to achieve:
SomeArray.each do |i, name, content|
info[i+1] = { "name" => name, "content" => content }
end
So that I can call, for example info[1] [name] or info[5][content]...
iteration? What I'm trying to achieve:
SomeArray.each do |i, name, content|
info[i+1] = { "name" => name, "content" => content }
end
So that I can call, for example info[1] [name] or info[5][content]...