Were the Rubaiyat of Omar Khayyam in Arabic or Persian?

The Rubaiya is an Arabic style of poetry, but Omar Khayyam's Rubaiyat are written in Persian.