From: thunk Date: 2010-03-27T12:10:06+09:00 Subject: Re: Class of the calling Object, is there someway to fetch it (from the called method)? On Mar 26, 9:45 pm, Ryan Davis wrote: > On Mar 26, 2010, at 18:15 , thunk wrote: > > >    def calling_method1 > >        age = @wB.get_note(:AGE, 19) > >        puts "defaulted age = " + age.to_s > >        @wB.put_note(:test, 12) > >        @wB.put_note(:test, 16)   #just overwrites, handy?! > >        age = @wB.get_note(:test) > >        puts "age = " + age.to_s   # => 16 > >    end > > This is not a test (nor is any of the rest of your file). > > Also, it hints very much that you're reimplementing rinda, as I've suspected for a while. Google for Linda TupleSpace for more info. 1. I don't know from "tuples" - all I "need" are hashes. Somebody also mentioned Graphs. I'm happy with my set of conventions and these hashes for my purposes. 2. I looked at Rinda and didn't understand it. 3. Anything that works for me in 60 lines and I have complete control over is not something I am personally interested in replacing with something I don't understand or see a need to. 4. Any thing I write that "tests" is a "test" to my simple logic. I'm spending a great deal of time implementing self-tests and all such and have written and supervised some pretty big projects in other languages. I'm in awe of what Ruby can do but I don't really think you guys, as awesome as you all are, have any place telling that I'm not testing. Save that for the rookies. Or maybe you have redefined what "testing" means. As an old QC guy, i'd have to wonder if you can do that.