[rspec-users] Monitor method invoking from superclass

Zhi-Qiang Lei zhiqiang.lei at gmail.com
Thu Sep 30 08:45:38 EDT 2010


Class A
  def a
    #some code
  end
end

Class B
  def a
    #some code
    super
  end
end

I want to if B is receive 'super' message. Thanks.

On Sep 30, 2010, at 7:59 PM, David Chelimsky wrote:

> On Sep 30, 2010, at 4:02 AM, Zhi-Qiang Lei wrote:
> 
>> Dear All,
>> 
>> Class B is a subclass of class A. Could anyone tell me how to monitor if object created from class B receives a super message when its method is invoked. Thanks.
> 
> I don't know of a way to do that. What problem are you trying to solve?
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list