How to intercept a method call in Boo?

Ruby has method_missing , Python has getattr . Does Boo offer something I can use to intercept method calls?

+4
method-missing boo intercept
Jul 18 '09 at 14:13
source share
1 answer

Yes, Boo has IQuackFu .

Basically, you implement IQuackFu , which has three methods:

  • QuackGet : called when you get a property value
  • QuackSet is called when you set the value of a property
  • QuackInvoke : called when a method is called

Here is an example .

+7
Jul 18 '09 at 15:27
source share
— -



All Articles