RCapture is a very powerful programming tool for Ruby. It allows you to place hooks which manipulate the data coming into a method or going out from it.