[rspec-users] Monitor method invoking from superclass

Zhi-Qiang Lei
Thu, 30 Sep 2010 12:45:38 -0000

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