From: Alberto Santini Date: 2008-03-19T21:53:39+09:00 Subject: Inspetting a method's caller Hello. How can i know a function's caller method? E.g. class A def do_stg(n) b = B.new b.do_xyz(n) end end class B def do_xyz(n) # -> Here i want to know that # -> This method has been called # -> From A#do_stg n + 1 end end Kernel#caller does not help.. i don't care what file or line a function has been called, and i couldn't find nothing helpful on ruby-doc nor by searching google :| Please keep in mind i'd like to know that do_xyz has been called by do_stg -> WHICH IS A METHOD OF THE "A" CLASS <- Thanks for your help :) -- Posted via http://www.ruby-forum.com/.