From: Alex Fenton Date: 2008-03-20T01:34:54+09:00 Subject: Re: Inspetting a method's caller Alberto Santini wrote: >> but you can make the caller send in an extra argument, putting its >> description/ID/Name there. > > Of course i can, i just *don't want* to do this. For example, imagine i > want to access a database table that (by -> convention <-) has the same > name of a class. Imagine i have a DBHelper class that contains a > DBHelper#find method used to find records on the database. if > DBHelper#find is called from a Ball object i want to lookup on the > "ball" table, it it's called from a Cube object i want to search the > "cube" table, etc. Perhaps your DBHelper class would be better designed as a module that is included in the Ball/Cube.etc classes, or extends its instances? alex