I'm using ruby 1.9.2-p136
What i want to do is, create two methods: before_method and after_method
When i do this in a class:
before_method :foo, :bar
it should run these two methods before any called method, i.e. if i call a class method foo1, the order in which the methods should be executed is: foo bar foo1
Also, i want a method after_method which does the opposite of before_method
Can anyone tell how to go about it??
Thanks in advance :)