From: victor Date: 2001-06-17T06:35:23+09:00 Subject: [ruby-talk:16545] Re: walking the ruby_frame list On Sat, Jun 16, 2001 at 10:56:30PM +0900, Yukihiro Matsumoto wrote: > Hi, > > In message "[ruby-talk:16503] walking the ruby_frame list" > on 01/06/16, victor writes: > > | I have a question about the frame list. I am working on implementing > |a capability security module in Ruby, and I find that in order to to this > |in a way that is not activly painful to program I need to be able to walk > |the frame list to snag a reference to the object that invoked the method I > |use to test for capabilities. Here are diffs for anyone interested: > > I'm not really sure what you want. Do you want the object that invoke > the method? Or nearest non-self object in the method calling frames? I am looking for the object that invoked the method. Walking back up the frame list was just the first simple method that I found. > matz.