Ruby annotation with complex scripts