tag:blogger.com,1999:blog-12467669.post2778681017069024293..comments2023-04-29T07:23:25.825-04:00Comments on Jay Fields' Thoughts: Class DefinitionsJayhttp://www.blogger.com/profile/14491442812573747680noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-12467669.post-10098610391560249512007-01-27T08:22:00.000-05:002007-01-27T08:22:00.000-05:00I've always liked Ruby's open class feature but ha...I've always liked Ruby's open class feature but have also wondered how do you keep track of all the changes made to the class definition during runtime? At any given point of execution, how can you be sure that a particular class has a certain method that works a certain way or not? For example, your "test" method of TestCase... I thought it was an in-built thing until I found a link that said you'd added it yourself.<br /><br />I guess an explanation of this will take a complete blog entry of its own. :-) Perhaps you could point me to a mailing list discussion or something. Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12467669.post-12325248309081155372007-01-27T02:01:00.000-05:002007-01-27T02:01:00.000-05:00> Less readable? Perhaps, but is it if you know wh...> Less readable? Perhaps, but is it if you know what behavior Struct.new encapsulates?<br /><br />No. Especially, since you get value-based equality checking and hash codes out of that same line.Alexey Verkhovskyhttps://www.blogger.com/profile/00949972013936326795noreply@blogger.com