+ 3
RE: Modules, Mixins, Standard Classes Module 6 quiz
Correspondingly, can anyone answer this question: Fill in the blanks to create a Struct and instantiate an object. Addr = Struct. (:city, :country) a = Addr. ("Toyko", "JP")
1 Antwort
+ 2
easy
Addr = Struct.new (:city, :country)
a = Addr.new ("Toyko", "JP")