Make lambda syntax compatible with ruby 1.9.3 as well as ruby 2.0.0