Is it possible to rotate textures using Ruby API?

Since this topic was started the API added the ImageRep class, which can be gotten directly from a texture assigned to a material. Then the pixel data can be retrieved, rotated or otherwise manipulated, then set back to the ImageRep. Lastly the modified ImageRep can be set as the texture to the original or a new material.