RE: Modules, Mixins, Standard Classes Module 6 quiz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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")

11th Nov 2016, 9:59 PM
Miles Griffith
Miles Griffith - avatar
1 Answer
+ 2
easy Addr = Struct.new (:city, :country) a = Addr.new ("Toyko", "JP")
14th Nov 2016, 9:40 PM
Vladimir Honcharenko
Vladimir Honcharenko - avatar