tag:blogger.com,1999:blog-35868762.post116268944881617635..comments2023-05-16T07:56:56.864-07:00Comments on Dead Programmer Society: Ruby Domain Specific Languages - The Basics (Part 1)Ron Evanshttp://www.blogger.com/profile/06754261780924273552noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-35868762.post-32755789180991549222007-03-07T05:51:00.000-08:002007-03-07T05:51:00.000-08:00This line didn't work until I put pikes around "va...This line didn't work until I put pikes around "var", like: self.class.instance_variables.each do |var|<BR/><BR/>Was that necessary, or did I miss something elsewhere that made the pikes superfluous?<BR/><BR/>BTW, this is a very helpful tut: thanks a lot!<BR/><BR/>RonRon Phillipshttps://www.blogger.com/profile/03435842117775819278noreply@blogger.comtag:blogger.com,1999:blog-35868762.post-23369112542307534002007-03-07T05:44:00.000-08:002007-03-07T05:44:00.000-08:00In the Animal class, could that be an attr_reader ...In the Animal class, could that be an attr_reader just as well, since you are overwriting the attr_writer portion?<BR/><BR/>I am really asking; I tried it, and it seemed to work, but I didn't know what errors might occur anyway.<BR/><BR/>RonRon Phillipshttps://www.blogger.com/profile/03435842117775819278noreply@blogger.com