Creating a Variable Name in a loop in ruby

后端 未结 0 2085
猫巷女王i
猫巷女王i 2020-11-21 09:06

I need the following objects created with this specific naming schema:

animal1 = create(:animal)
animal2 = create(:animal)
animal3 = create(:animal)
...
anima         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题