From: thomas coopman Date: 2006-07-24T04:06:56+09:00 Subject: get caller of method Hi, Does there exist a method to get the object or type of object that calls this method? for example: class Foo do end class Bar do end do if caller.kind_of?(Foo) puts "Foo" elsif caller.kind_of?(Bar) puts "Bar" end end Thanks!