Add example for ruby callback block