From: "Luke A. Kanies" Date: 2004-08-14T05:15:01+09:00 Subject: Re: Relationship between classes On Fri, 13 Aug 2004, David A. Black wrote: > Maybe create some classes to wrap all of this in, so that you would > then do something like: > > obj.add_operation(:chown) do |op| > op.attributes = [:owner,:file] > op.action = lambda {|object| .... } > ... > end > > and so on. That might scale more nicely, and allow you to easily add > ways to query and view things as you go. Hmm. I'll look into that; after sending my email out last night, I think I may have been able to see the problem a bit more simply (as usually happens). I think it would be a bit easier to wrap the data in these simple methods, but the methods would have to be called on the class itself, not on instances or any such thing. I'll think about it over the weekend, I guess. Thanks, Luke -- Secondly, Latin is a so-called "dead language." It takes a lot to kill a language. There are countries the size of my kitchen that have their own healthy languages. Clearly, if Latin was useful in its normal form, it would be alive today. Therefore the language must be defective. I don't see much risk in changing it. What's the worst thing that could happen -- Latin will become unpopular? -- from the DNRC Newsletter, by Scott Adams --------------------------------------------------------------------- Luke Kanies | http://abstractive.org | http://reductiveconsulting.com