Add inject example for ruby