Home>

Fruit model has column names name and color

fruits = {name:"apple" ;, color:"red"} when there is an array, use each statement

fruit = Fruit.new ()
fruit.name = "apple"
fruit.color = "red"


How can I assign values ​​to