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!