10 Jun 2010

Aspect4r 0.8.1 is released

Aspect4r 0.8.1 is out. Feel free to give it a try and let me know your thoughts. Here are changes worth mentioning:

  • Define advices for singleton methods (also known as class methods)
  • Test advices and test barebone method without advices
  • Group advices (list of advices applied to one method is splitted into groups based on advices' group. This warrants a separate post)

Advices on singleton method example (same as advices on instance methods except you have to put the code inside "class << self" block)

Test advice example (complete example can be found here)

Before I blog more on this and document the API, please find a lot nice and working examples here: http://github.com/gcao/aspect4r/tree/master/examples